why use interface? if interface declear a method implement
in class. why direct implement method in class
Answer / fajruddin sk
interface mainly use as of my knowledge-----> (1) for loosely coupling(2)just declare a rule(3)for giving a special behavior(Marker interface) (4)for multiple inheritance
| Is This Answer Correct ? | 0 Yes | 0 No |
They had given one progam final HashMap hm=new HashMap(); public void show() { hm.put("name",value); } in this prg here the final hashtable value can be changed in put method,its the prg run?
How to extract HashMap values?
what is ABSTRACTION and what are using in real time project?
Why parameters should be passed by reference?
What class allows you to read objects directly from a stream in java programming?
What is application tier?
Is node a data type in java?
What are the types of methods in java?
What is an example of procedure?
What problems will occur when you don?t use layout managers?
Are floats faster than doubles?
What is namespace in java?