R4R
Right Place For Right Person TM

What is the use of Interface ?

previous previous previous
Question:
What is the use of Interface ?

Question:What is the use of Interface ?


Answer
Java acheive inheritance using two notions : By extending the class and implementing the interace. When you "implement" an interface, you are stipulating that your class adheres to the "contract" of the interface that you specified. Use interfaces to say "What objects can do" or "What can be done to an object. "Interfaces are intended to define the what without defining the how. Interfaces provide a form of multiple inheritance. A class can extend only one other class. Interfaces are limited to public methods and constants with no implementation.

By:Jalees
Date:

What is the use of Interface ?

Post Your Answers


User Name:
Answers:

Related Links

  1. Why Java is not fully objective oriented ?
  2. What it the root class for all Java classes ?
  3. What is the exact difference in between Unicast and Multicast object ? Where we will use ?
  4. Why there are some null interface in java ? What does it mean ?
  5. What is latest versions in JAVA related areas ?
  6. What is mean by class loader ? How many types are there? When will we use them ?
  7. public static void main - Explain?
  8. What is difference between String & StringBuffer?
  9. What is Wrapper class. Is String a Wrapper Class?
  10. What is Default modifier in Interface?
  11. Can abstract be declared as Final?
  12. Can we declare variables inside a method as Final Variables?
  13. How can a dead thread be started?
  14. Can Applet have constructors?
  15. What is Checked & Unchecked exception?
  16. Explain. Two types of multi-tasking.
  17. Explain I/O Filter.
  18. Can applet in different page communicate with each other?
  19. Does JavaScript support multidimensional arrays ?
  20. What is meant by a resource leak ?
  21. What are the thread-to-thread communication ?
  22. What is meant by deadlock ?
  23. What is user defined exception ?
  24. In an HTML form I have a Button which makes us to open another page in 15 seconds. How will do you that ?
  25. Suppose If we have variable ‘ I ‘ in run method, If I can create one or More thread each thread will occupy a separate copy or same variable will be shared ?
  26. What is function in a constructor ?
  27. In a Container there are 5 components. I want to display the all the components names, how will you do that one ?
  28. Differeence between canvas class & graphics class?
  29. What is the restriction on an Overridden methods’ accessibility ?
  30. Can a method be overloaded by different return type but same argument type?
  31. What is constructor chaining and how to do this in Java?
  32. What is passed by ref and by value?
  33. In DB access where to write the query. In JSP or servlet?
  34. Explain difference between Constructer and a method
  35. What are differences between procedural and object oriented language?
  36. Why threads block or enters to waiting state on I/O?
  37. What are transient variables in java?
  38. How Observer and Observable are used?
  39. What is List interface ?
  40. What is the difference between yield() and sleep()?
  41. Can we call finalize() method ?
  42. What is the initial state of a thread when it is created and started?
  43. Can we declare an anonymous class as both extending a class and implementing an interface?
  44. What is the differences between boolean & operator and && operator?
  45. What is an abstract method ?
  46. what is a the difference between System.err and System.out
  47. What is the difference between synchronized block and synchronized method ?
  48. How can you force garbage collection in java?
  49. How can you call a constructor from another constructor ?
  50. How can you call the constructor of super class ?

Question:What is the use of Interface ?

Back Home Next

New Updates

Topics

Topics

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R