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
Are private methods final?
What is the difference between multitasking and multithreading in Java
What is difference between string and stringbuffer?
Why java uses the concept of the string literal?
What is the difference between an interface and an abstract class?
Is set thread safe java?
Which method cannot be overridden in java?
How does finally block differ from finalize() method?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
What is autoboxing and unboxing?
What is externalizable?
Explain the transient field modifier?
What is arrays aslist in java?
List some features of the abstract class.
Can a singleton class be inherited?