why marker interfaces are there in java
Answer Posted / ravinder
When a class implements a marker interface, then the object
of that class is given with a special behavior. For example
if a class implements remote interface(available in
java.rmi.* package) object of that class acts as a Remote
Object. For this reason java provides Marker Interface.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
What are the methods to rectify ambiguities in the interfaces in JAVA?
What is stringbuffer in java?
Explain OOPs concept.
Does java linked list allow duplicates?
Can we convert list to set in java?
If try block is successfully executed, Then Is Finally block executed?
what is the difference between preemptive scheduling and time slicing? : Java thread
public class Test { public static void main(String[] args) { int countA = 0; int countB = 0; int countC = 0; int countD = 0; int countE = 0; int countF = 0; int countG = 0; int countH = 0; int countI = 0; int countJ = 0; int countK = 0; int countL = 0; int countM = 0; int countN = 0; int countO = 0; int countP = 0; int countQ = 0; int countR = 0; int countS = 0; int countT = 0; int countU = 0; int countV = 0; int countW = 0; int countX = 0; int countY = 0; int countZ = 0; } } Can anybody tell me any alternate solution(like loop or something) to automate this initialization process. Ex:- for(char chr='A';chr<='Z'; chr++) { (int) String "count"+chr = 0; }
What is square root in java?
If you are given the name of the function at run time how will you invoke the function?
Can we define static methods inside interface?
What are the core java topics?
When do you call copy constructor?
What is the gregoriancalendar class in java programming?
What is a function in java?