Category: Java
-
JavaHashtable class in Java Collection Framework
The Hashtable class creates a hash table by mapping keys to values. As a key or value, any non-null object…
August 3, 2022
-
JavaCollections Class in Java
The Collections class belongs to the Java Collections Framework. The package java.util.Collections is the package containing the Collections class. The…
August 5, 2022
-
JavaComparable Interface in Java
The Comparable interface is used to compare an object of the same class with an instance of that class; it also enables data ordering for user-defined class objects. The class has to implement the java.lang.Comparable interface to compare its instance, it provides the compareTo() method, which accepts an object of that class as an argument. Its sorting algorithm is…
August 5, 2022
-
JavaComparator Interface in Java Collection Framework
To sort the objects of user-defined classes, a comparator interface is utilized. A comparator object can compare two items of…
August 6, 2022
-
JavaLegacy Classes in Java
What are the Legacy Classes in Java? Before Java 1.2, there were multiple classes and interfaces to hold the objects….
August 8, 2022
-
JavaJava Applet
A Java Applet is a sort of software that is embedded in a webpage to generate dynamic content. It operates…
August 9, 2022
-
JavaGraphics in Applet
java.awt.Graphics class in Applet has methods for working with graphics. Methods of the Graphics class: Method Description public abstract void…
August 10, 2022
-
JavaJApplet class in Applet
JApplet is a public java swing class created for developers often developed in Java. JApplet is usually written in Java…
August 12, 2022
-
JavaEvent Handling in Java
An event is defined as the act of changing the state of an item or behavior. A button click, cursor…
August 12, 2022
-
JavaAWT (Abstract Window Toolkit) in Java- I
Graphical User Interface (GUI) programming is supported by the Abstract Window Toolkit (AWT). Java AWT components are platform-dependent, which means…
August 14, 2022
-
JavaAWT (Abstract Window Toolkit) in Java- II
Java AWT TextArea: A TextArea class’s object is a multiline zone that displays text. It allows you to modify many…
August 15, 2022
-
JavaSwing Class in Java
Swing is a Java Foundation Classes [JFC] framework and an Abstract Window Toolkit [AWT] extension. Swing has much-improved functionality over…
August 16, 2022