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

Program to output as below formate: 1 2 3 4 5 6 7 8 9 10

4 Answers   Huawei,


What is java instanceof operator?

0 Answers  


Can we access a database using applets?

2 Answers   Hewitt,


How does enum work in java?

0 Answers  


Does java support multiple inheritances?

0 Answers  






What are the methods to rectify ambiguities in the interfaces in JAVA?

0 Answers   CGI,


What is substring 1 in java?

0 Answers  


aabccdee Find the used alphabets as abcde ?

4 Answers  


What does it mean that a method or field is “static”?

0 Answers  


What is the byte order of byte buffer?

0 Answers  


What is a boolean expression in java?

0 Answers  


What is string subsequence method?

0 Answers  


Categories