Comparable is not a marker interface as it has one method
int compareTo(Object o).
Type: Posts; User: rohitmania; Keyword(s):
Comparable is not a marker interface as it has one method
int compareTo(Object o).
When you want ur object to be passed over network connection, you need to make that class serializable.
@srini235
But what if other threads are referring to that object somehow?
Class.forName() decides what type of object is to be created at run-time.
It removes build-time dependency.
no difference according to me...
method is OO concept related to class
i.e. function written for a class = method
this is my wild guess...
as per my knowledge it hardly makes any difference.