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 substring of a string?

1 Answers  


Is namespace same as package in java?

0 Answers  


What are the Main functions of Java?

0 Answers   Akamai Technologies,


What is the difference between stringbuffer and stringbuilder?

0 Answers  


Does hashset allow duplicates in java?

0 Answers  


Why is stringbuffer thread safe?

0 Answers  


Whats the difference between notify() and notifyall()?

0 Answers  


Explain java coding standards for interfaces?

0 Answers  


Can you extend more than one interface?

9 Answers  


Superclass of exception

4 Answers   Nous,


What is the difference between yielding and sleeping in java programming?

0 Answers  


Does unicode support all languages?

0 Answers  


Categories