Java OOPs Concepts
overloading vs overriding
There are many differences between method overloading and method overriding in java. A list of differences between method overloading and method overriding are given below:…
object vs class
There are many differences between object and class. A list of differences between object and class are given below: No. Object Class 1) Object is…
Command Line Arg
The java command-line argument is an argument i.e. passed at the time of running the java program. The arguments passed from the console can be…
javadoc tool
We can create document api in java by the help of javadoc tool. In the java file, we must use the documentation comment /**… */…
Strictfp Keyword
Java strictfp keyword ensures that you will get the same result on every platform if you perform operations in the floating-point variable. The precision may…
Call by Value
There is only call by value in java, not call by reference. If we call a method passing a value, it is known as call…
Java Recursion
Recursion in java is a process in which a method calls itself continuously. A method in java that calls itself is called recursive method. It…
Wrapper class
Wrapper class in java provides the mechanism to convert primitive into object and object into primitive. Since J2SE 5.0, autoboxing and unboxing feature converts primitive…
Java Array
Normally, array is a collection of similar type of elements that have contiguous memory location. Java array is an object the contains elements of similar…
Object Cloning
The object cloning is a way to create exact copy of an object. For this purpose, clone() method of Object class is used to clone…