Interfaces Interview Questions for Fresher and Experienced

1.What do you mean by interface how to declare interfaces in java?
2. Interfaces allows normal methods or abstract methods or both?
3. For the interfaces compiler generates .class files or not?
4. Interface is also known as?
5. What is the abstract method?
6. By default modifiers of interface methods?
7. What is the purpose of implements keyword?
8. Is it possible to declare variables in interface ?
9. Can abstract class have constructor ?can interface have constructor?
10. What must a class do to implement interface?
11. What do you by implementation class?
12. Is it possible to create object of interfaces?
13. What do you mean by abstract class?
14. When we will get compilation error like “attempting to assign weaker access privileges”?
15. What do you mean by helper class?
16. Which of the fallowing declarations are valid & invalid?
  a. class A implements it1
  b. class A implements it1,it2,it3
  c. interface it1 extends it2   d.interface it1 extends it2,it3   e.interface it1 extends A   f.interface it1 implements A 17. what is the difference between classes and interfaces?
18. The interface reference variable is able to hold implementation class objects or not?
19. Interface-name reference-variable = new implementation class object(); valid or invalid 20. What is the real-time usage of interfaces?
21. what is the limitation of interfaces how to overcome that limitation?
22. What do you mean by adaptor class?
23. What is the difference between adaptor class interfaces?
24. Is it possible to create user defined adaptor classes?
25. Tell me some of the adaptor classes?
26. What do you mean by marker interface and it is also known as?
27. Tell me some of the marker interfaces?
28. What are the advantages of marker interfaces?
29. Is it possible to create user defined marker interfaces?
30. What do you mean nested interface?
/

Comments

Popular posts from this blog

Exception Handling

Multithreading Interview Question for Fresher and Experienced

Collections Framework Interview Questions for Fresher and Experienced