0% found this document useful (0 votes)
7 views2 pages

Unit-2 QB (Oops)

Uploaded by

saranya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Unit-2 QB (Oops)

Uploaded by

saranya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

UNIT- II INHERITANCE, PACKAGES AND INTERFACES

PART-A
1. Define method overloading.
2. Define object as parameter
3. Define Inner class. What are the four types of inner class?
4. Define returning objects.
5. State the difference between inner class and anonymous class. Nov 2011
6. What are the advantages of inner class?
7. Define Static Nested class and Inner classes.
8. Define Inheritance. or Define Extended class. Nov 2018 Nov 2023
9. What is Is-A relationship in Java?
10. What are the advantages of inheritance?
11. Enlist various forms of inheritance.
12. Explain the use of extend keyword.
13. What is the concept of super class and sub class in inheritance?
14. Define Multilevel inheritance
15. Define Single inheritance.
16. Define Hierarchical Inheritance
17. Why is multiple inheritance using classes a disadvantage in Java?
18. Define Multiple inheritance.
19. Define Hybrid inheritance.
20. Differentiate between inheritance and polymorphism.
21. Define Keyword super. What is the use of super keyword? May 2021
22. What is meant by method overriding? Nov 2013
23. What are the rules / conditions to be followed for method overriding? Apr 2019
24. Define Dynamic method dispatch. How dynamic method resolution is achieved in java. Apr 2023 How
Dynamic method resolution is achieved in java? Apr 2023
25. What is abstract class?
26. Can an abstract class be final? Why? Nov 2010
27. Can an abstract class in Java be instantiated? Give the reason. Nov 2013 When a class must be declared as
abstract. Nov 2022
28. Difference abstract class and Concrete class.
29. What is the purpose of 'final' keyword? Nov 2011, 2012 What is the use of final keyword? Apr 2023
30. What is final variable?
31. What is final class?
32. What is final method?
33. Define package. May 2017
34. What is the purpose of package?
35. Mention the necessity for import statement in package. Apr 2012
36. Define Class path? May 2011, May 2012
37. Define interface. State its use. My 2011, May 2012, Dec 2012, May 2015, Nov 2019
38. What are the member accesses in package?
39. Write the syntax of interface.
40. What modifiers may be used with in interface declaration?
41. What is the difference between an interface and an abstract class? Dec 2012
42. How to implementing interface?
43. Compare class and Interface.
44. How to extending interface?
PART-B

1. Outline method overloading in java with code fragments. Nov 2023


2. Explain in detail about object as a parameter
3. Explain in detail about Inner Classes. (Nov/Dec-11)(May/June-13)
4. Explain in detail about the basics of inheritance and elaborate on any two inheritance mechanisms in java.
(April/May-2023)
5. Give short notes on Super Key word
6. Explain in detail about Overridden methods with example programs. (Method Overriding)(Nov/Dec 2024)
7. What is dynamic method dispatch? Explain with example program.
8. Explain about abstract classes and methods with example programs. (Apr/May 2024)
9. Explain in detail about final keyword, methods and classes.
10. Explain About Interfaces with Example.(Nov/Dec 2024)
11. Write The Difference Between Class And Interfaces.
12. What is a package? Explain in detail about how the packages provide access control to various categories of
visibility for class members (April/May-2023/2024)
13. Write a java program for library interface with drawbook(), returnbook() and checkstatus() methods.(Nov/Dec-
22)
14. What are the advantages using packages? Illustrate how to add classes in a package and how to access these
classes in another package.(Nov/Dec-22)

You might also like