what is marker interface ? what is the necessity of it?
Answer Posted / ganesh reddy
markble interface does not contains any methods,but
implementing of these interfaces will be recognise by Jvm
then it will decide that "this class is going do
something".for example for cloneable interface implements
by some class x which consists of a,b variable ,But I need
to interchange instance variables a to b and b to a (pass
by value)of class x and i want again the same values for a
and b.At this situations we can implement cloneable
interface.Like this markble interface are very useful as my
knowledge........
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Is there any sort function in java?
In which language java is written?
Can I overload to string method
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
What is variable in java?
What are some examples of variable costs?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
Write code of any action class?
How do you check if an arraylist is not empty?
What is a blocking method in Java?
What is the use of keywords in java?
What are the important methods of java exception class?
Can an interface implement another interface?
What is method reference in java?
Which package has light weight components?