0% found this document useful (0 votes)
6 views1 page

Oops Assignment

The document contains a list of assignment questions related to Object-Oriented Programming (OOP) in Java, covering topics such as operators, data types, abstraction, arrays, loops, variable scopes, and class structures. It also includes programming tasks like temperature conversion, prime number checking, linear search, and exception handling. Additionally, it discusses threads, synchronization, inheritance, and the concept of method overloading and overriding.

Uploaded by

gnaneshwaritrmk
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)
6 views1 page

Oops Assignment

The document contains a list of assignment questions related to Object-Oriented Programming (OOP) in Java, covering topics such as operators, data types, abstraction, arrays, loops, variable scopes, and class structures. It also includes programming tasks like temperature conversion, prime number checking, linear search, and exception handling. Additionally, it discusses threads, synchronization, inheritance, and the concept of method overloading and overriding.

Uploaded by

gnaneshwaritrmk
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/ 1

OOP with Java Assignment Questions

1. Explain different operators in Java.


2. Discuss different data types supported by Java.
3. Explain the following i) Abstraction
ii) Three principles of OOP
iii) two paradigms of programming
iv) justify “compile once and run anywhere” in java
4. Discuss briefly 1D and 2D array with example.
5. Explain for –each version of the for loop.
6. Explain various scopes of variables in java.
7. Develop a java program to convert Celsius temperature to Fahrenheit.
8. Write a java program with a method to check whether a given number is prime or not.
9. Write a java program to perform linear search on an array elements accepted from
keyboard and key element also accepted from keyboard.
10. Interpret the general form of a class with example. How do you declare object Give
example?
11. Interpret with an example types of constructors.
12. Explain the role of “this” keyword and “static” keyword in java.
13. Explain method overloading in java with examples.
14. For any class and any method as an example, explain method overriding.
15. Explain the role of “super” and dynamic dispatch method with example java program.
16. Explain the order of constructor execution in a multilevel class hierarchy.
17. Explain four categories of visibility for class members based on packages.
18. Give the general form of an exception handling block and write a Java program to
illustrate multiple catch classes.
19. With code snippets ,explain mechanism to create and import a package in java.
20. Define a thread. Also discuss the different ways of creating a thread.
21. How synchronization can be achieved between threads in Java? Explain with
example.
22. Summarize the type wrappers supported in Java.
23. Explain Autoboxing/ Unboxing that occurs in expressions and operators.
24. Explain is Alive () and join() methods of thread with example code snippet.
25. Define inheritance and list the different types of inheritance in Java.

You might also like