Java-oops Gnit
Java-oops Gnit
Theory Section
1. Major and Minor elements with proper explanation of each element.
3. MCQs from the preliminary portions of Java which are similar to C e.g. loop, operator, data
type, automatic type promotion, type casting, etc.
13. Why Java is called architecture-neutral language? OR Why Java is called platform-
independent language?
20. Explain different types of inheritance in Java. Explain different types of inheritance in
OOP.
23. Why Java doesn't support multiple inheritance? Explain with example program.
25. What is Package? How can you create user defined package in Java? Explain with an
example.
6. Constructor — diff. between method and constructor, definition, syntax, diff. between
different types of constructor, programming examples of each type, detailed concept.
10. Method overloading vs. Constructor overloading with an example, Program. Method
overloading – Description, Definition, rules, Program.
11. Method overloading vs Method overriding Early binding v/s Late binding Static
polymorphism v/s Dynamic polymorphism → All are same Prepare with programming
examples.
14. Static keyword — uses and properties of static keyword with example program.
15. Inner class, nested class — short note, definition, different types, example programs,
working procedure.
17. toString() — use with example program, equals() v/s == with example programs, some
more methods of String and StringBuffer classes (will discuss in class).
26. How to include multiple public classes inside a package? Explain with an example.
28. How to import multiple packages in a Java program? Explain with an example.