-
-
-
-
-
-
-
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.
-
-
-
-
-
-
-
-
What is the Difference between Design Pattern and Architecture? Can any one answer for this plz..
Design Pattern means how u r approaching the problem.Architecture means how the data is flowing in your application
-
-
What is the difference between Enumeration and Iterator?. When i can use Enumeration and when i can use iterator?. Can any one tell me the situation that only Enumeration could able to solve that problem and vice versa.
In Enumeration we cant modify the elements. where as in iterator we can modify the elements
-
-
Core Java Interview Questions
Ans