Assignment Questions
1. List the features of the Java Programming language? .
2. What are Inheritance, Encapsulation, Polymorphism, and Abstraction in Object-
Oriented Programming?
3. Explain continue Statement in Java with example.
4. What is the difference between class variables and instance variables in Java?
5. What are the types of variables a class can have in Java?
6. List the types of inheritances in Java.
7. Explain the types of constructors in Java with suitable example.
8. Differentiate between method overloading and method overriding.
9. What is a program to find the largest two numbers using if and conditional
operators?
10. Write a program to initialize object of a class student using parameterized
constructor.
11. What is constructor and different types of constructors in Java?
12. Give use of ‘this’ keyword in Java with suitable example.
13. Give syntax to create an object of a class with suitable example.
14. Write a program to implement single level inheritance assuming suitable data.
15. Write a short note on class and object.
16. Explain different types of inheritance with examples.
17. Discuss the operator of Java.
18. Write a Java program to demonstrate method overloading.
19. Discuss the use of this() and super() with example.
20. Define a class and object. Write syntax to create class and object with an
example.
21. Explain with example for loop.
22. What is mean by OOP? Explain OOP Concepts?
23. Define Class, Method and Object? Show the syntax to define these in Java
24. Explain do while with example
25. Write a java program to implement multilevel inheritance with example.
26. What is an Operator? Explain any two type of operators in Java with example
programs.
27. Write all primitive data types available in java with their storage size in bytes.
28. Define class Student with suitable data members create two objects using two
different constructors of the class.
29. Explain multilevel and hierarchical inheritance with an example program.
30. What is inheritance? List types of inheritance and explain single level
inheritance with example.
31. Explain two dimensional array in java with example.
32. Explain class variable with suitable example
33. Explain any two relational operators in Java with example.
34. Describe types of variables in Java with their scope.
35. Explain one dimensional array in java with example.