Core JAVA Archive
Marker Interface in java is an interface with no fields or methods. It is used to instruct to the JVM for specific task or special behavior for those classes whose implementing marker interface. Marker interface …
Java is pass by value and not pass by reference i.e. Java copies and passes the reference by value, not the object. Thus, method manipulation will alter the objects, since the references point to the …
Difference Between ClassNotFoundException Vs NoClassDefFoundError in Java interview question ask many times, So ClassNotFoundException Vs NoClassDefFoundError in Java we look in this article. In Java, both ClassNotFoundException and NoClassDefFoundError occur when a particular class is …
In this tutorial, it shows the use of java.lang.Comparable and java.util.Comparator to sort a Java object based on its property value. Java provides some inbuilt methods to sort primitive types array or Wrapper classes array …
Serialization in java is a mechanism of writing the state of an object into a byte stream. What is Serialization? – Serializable is a marker interface. When an object has to be transferred over a …
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 an object. The java.lang.Cloneable interface must be implemented by the …
Immutable class is a class which once created, it’s contents can not be changed. Immutable objects are the objects whose state can not be changed once constructed. e.g. String class An immutable class is one …