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 |
What is difference between == equals () and compareto () method?
What is a final class ?
Define nashorn in java8.
What is the difference between this() and super() in java?
What is the difference between array and arraylist? what is the difference between arraylist and linkedlist?
posted in online test
diff between abstract methods and interfaces with programing (code) example?
Is it safe for adding 10,00,000 records/objects to HashMap?, i.e is it safe to add millions of objects to HashMap?
What is string array?
How can you read an integer value from the keyword when the application is runtime in java? example?
What is a boolean used for?
How many types of keywords are there?