Skip to content

Category Archives: Java

  Why is Java called the ‘Platform Independent Programming Language’?   Platform independence means that execution of your program does not dependent on type of… Read More
Generics mean parameterized types. The idea is to allow type (Integer, String, … etc, and user-defined types) to be a parameter to methods, classes, and… Read More
Introduction In C/C++, programmer is responsible for both creation and destruction of objects. Usually programmer neglects destruction of useless objects. Due to this negligence, at… Read More
Let’s first analyze the following question: Can we have private constructors ?Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation… Read More
The super keyword in java is a reference variable that is used to refer parent class objects.  The keyword “super” came into the picture with… Read More
We strongly recommend to refer below post as a prerequisite of this. Regular Expressions in JavaAttention reader! Don’t stop learning now. Get hold of all… Read More
With recurrence use of if-else condition in programming which is tend to occur no matter how much we optimize our code. So taking this factor… Read More
Regular Expressions or Regex (in short) is an API for defining String patterns that can be used for searching, manipulating, and editing a string in… Read More
‘Iterator’ is an interface which belongs to collection framework. It allows us to traverse the collection, access the data element and remove the data elements… Read More
Comments that execute : Till now, we were always taught “Comments do not Execute”. Let us see today “The comments that execute” Following is the… Read More
Scanner is a class in java.util package used for obtaining the input of the primitive types like int, double, etc. and strings. It is the… Read More
HashMap and TreeMap are part of collection framework. HashMap java.util.HashMap class is a Hashing based implementation. In HashMap, we have a key and a value… Read More
Splitting a string by some delimiter is a very common task. For example, we have a comma-separated list of items from a file and we… Read More
Let us discuss the concept of the arrays and ArrayList briefly in the header to incorporate the understanding in java programs later landing onto the… Read More
The set interface is present in java.util package and extends the Collection interface is an unordered collection of objects in which duplicate values cannot be… Read More

Start Your Coding Journey Now!