why use interface? if interface declear a method implement
in class. why direct implement method in class



why use interface? if interface declear a method implement in class. why direct implement method in..

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

Post New Answer

More Core Java Interview Questions

What is the use of ?this??

4 Answers  


What is mnemonic in assembly language?

1 Answers  


Why are pointers not secure?

1 Answers  


Why synchronization is important?

1 Answers  


What do you mean by thread safe?

1 Answers  


What environment variables do I need to set on my machine in order to be able to run java programs?

1 Answers  


can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread

1 Answers  


how to create a jar file in java

1 Answers  


Which api is provided by java for operations on set of objects?

1 Answers  


what is the reason behind non static method cannot be referenced from a static Context?

2 Answers  


Explain the difference between static and dynamic binding in java?

1 Answers  


What do you understand by Header linked List?

1 Answers   Genpact,


Categories