what is main purpose of interface?
Answer Posted / javachi
The purpose of interface is to create the relationship between the parties involved. parties is nothing but a set of classes relates with each other. this is required when the sub class inherits the property of two or more superclasses(multiple inheritance)
Is This Answer Correct ? | 7 Yes | 8 No |
Post New Answer View All Answers
Can we have static methods in an interface?
What is connection class in java?
What are the special characters?
what is the difference between process and thread? : Java thread
What is an empty string in css?
What is the basic of java?
What is compareto?
What are the parts of methodology?
What is meant by data hiding in java?
how to create constants in java?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?
How do you write a good declaration?
Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?
How does multithreading take place on a computer with a single cpu?
How can you read an integer value from the keyword when the application is runtime in java? example?