-
-
-
-
-
-
-
-
-
-
-
-
-
-
Marker interface having no methods right.. then what is the use of marker interface? for what purpose we use marker interface?
One of the "clean" features of the Java programming language is that it mandates a separation between interfaces (pure behavior) and classes (state and behavior). Interfaces are used in Java to specify the behavior of derived classes. Often you will come across interfaces in Java that have no behavior. In other words, they are just empty interface definitions. These are known as marker interfaces....
-
When does the String Literal pool gets cleared?
In one java class I have created this string String s1 = "abc";Now if I again use this same statement in a different java class, ie;String s2 = "abc";Will I get the same reference for "abc" in both the classes.
-
-
-
-
-
Core Java Interview Questions
Ans