TCP/IP sockets are the most reliable, bi-directional, stream protocols. It is possible to send arbitrary amounts of data using TCP/IP. Sockets are used for data communication using this protocol.
Customized exceptions are necessary to handle abnormal conditions of applications created by the user.
This HTML document features a user input form that collects first name, last name, email address, and comments. JavaScript functions validate these inputs to ensure fields aren't blank and the email is properly formatted. Valid data is displayed in a new window for user review before final submission.
The AbstractList class in the Java Collections Framework provides a skeletal implementation of the List interface, enabling developers to create custom list implementations with ease. It offers default implementations for some list operations, allowing focus on specific aspects of the custom list.
Learn how to effectively read from and write to files, understand the nuances of file handling, and explore practical examples to streamline your Java programming tasks involving file operations.
File handling is a crucial aspect of any programming language, including Java. It enables developers to interact with the file system, allowing the creation, reading, updating, and deletion of files.
The Vector and Stack classes in Java Collections Framework provide essential tools for managing dynamic arrays and last-in, first-out (LIFO) stacks, respectively.
Explore the HashSet and TreeSet classes in Java Collections Framework. Learn how HashSet uses hashing for fast access and TreeSet maintains sorted order through a Red-Black tree.
The Set Interface and Map Interface within the java.util package are fundamental components of Java's Collections Framework. The Set Interface defines a collection that does not allow duplicate elements, offering implementations like HashSet, TreeSet, and LinkedHashSet.
Learn how to configure Java Servlet filters and filter chains in web.xml, including URL mappings and dispatcher types for REQUEST, FORWARD, INCLUDE, and ERROR.
Banners are images that appear at the top and bottom of Web pages and generally link to other sites. This script dynamically generates banner ads, linking to different sites based on the day of the week or randomly.
JavaScript provides a number of pre-defined objects like Array, String, Image, Date etc. which are very useful in web development.
Create an Applet with the menu bar and add the following menus: File, Edit and Search. Add default menu items to the respective menus. In the File menu, add the following items: New, Open, Save and Close.
Create and use a Java package with multiple classes to explore package structure, imports, inheritance, and access to public, private, protected, and default members.
It is possible to runout of unique names for classes in a big programming environment. There may be situations when two or more persons use the same name of their classes.
In my Last Article “Thread synchronization in Java” we have discussed the concept of monitor. A monitor can be compared to a small box that can only carry one thread at once.
When using two or more threads in a program, it may be so happening that more than one thread wants to access a resource at the same time. For example, one thread might try to read data from a file while the other tries to change data in the same file.
The JSTL EL or JSTL Expression Language is used by JSP Programmer in order to avoid the usage of Java Code for accessing data.
Introduction: Standard actions in JSP use the <jsp>prefix. The attributes in JSP standard actions are always case sensitive. Values inside the attributes must be enclosed in double quotes.
Dialog box, like frame, is a pop-up window on which user interface components can be laid out.
A lightweight container that manages its layout using a BoxLayout object. Several class methods offered by Box are beneficial for containers using BoxLayout.
The drag and drop mechanism consists of the GUI elements that make up the user interface for the drag and drop operation as well as the protocol that binds drag sources to drop targets.
Of all the options panes, the easiest option pane to create is a message pane. And Confirm pane is slightly different from the message option pane. This type of pane is used to request a decision from the user.
In any interactive environment, the program should be able to respond to actions performed by the user. These actions can be mouse click, key press or selection of a menu item.
Stream Tokenizer class helps in identifying the patterns in the input stream.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article