Tag Archives: Java-Class and Object

The StringBuilder in Java represents a mutable sequence of characters. Since the String Class in Java creates an immutable sequence of characters, the StringBuilder class… Read More
Prerequisite: Array class, Arrays class The Array class in java.lang.reflect package is a part of the Java Reflection. This class provides static methods to dynamically… Read More
The Array class in java.lang.reflect package is a part of the Java Reflection. This class provides static methods to dynamically create and access Java arrays.… Read More
Prerequisite: Future and callable Future: A Future interface provides methods to check if the computation is complete, to wait for its completion and to retrieve… Read More
The idea is to use static member in the class to count objects. A static member is shared by all objects of the class, all… Read More
Byte class is a wrapper class for the primitive type byte which contains several methods to effectively deal with a byte value like converting it… Read More
Pre-requisite: Linked List Data Structure Like arrays, Linked List is a linear data structure. Unlike arrays, linked list elements are not stored at the contiguous… Read More
The term Object-Oriented explains the concept of organizing the software as a combination of different types of objects that incorporates both data and behavior. Hence,… Read More
Generalization is the process of taking out common properties and functionalities from two or more classes and combining them together into another class which acts… Read More
A KeyValue is a Tuple from JavaTuples library that deals with only 2 elements – a key and a value. Since this KeyValue is a… Read More
A LabelValue is a Tuple from JavaTuples library that deals with only 2 elements – a label and a value. Since this LabelValue is a… Read More
Prerequisite : Inner Classes in Java 1. What will be the .class file name of the Inner class? filter_none edit close play_arrow link brightness_4 code… Read More
In object oriented design, cohesion refers all about how a single class is designed. Cohesion is the Object Oriented principle most closely associated with making… Read More
Synchronization : Synchronization is a modifier which is used for method and block only. With the help of synchronized modifier we can restrict a shared… Read More
JavaBeans are classes that encapsulate many objects into a single object (the bean). It is a java class that should follow following conventions: Must implement… Read More