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

Important Questions CO3 4

The document contains a list of important questions and coding tasks related to Java programming, covering topics such as returning objects, final keywords, inheritance, polymorphism, exception handling, multithreading, and file handling. It includes explanations and examples for various concepts, as well as coding exercises to reinforce understanding. Additionally, it addresses the implementation of interfaces and the differences between input and output streams.

Uploaded by

2210520065
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)
53 views2 pages

Important Questions CO3 4

The document contains a list of important questions and coding tasks related to Java programming, covering topics such as returning objects, final keywords, inheritance, polymorphism, exception handling, multithreading, and file handling. It includes explanations and examples for various concepts, as well as coding exercises to reinforce understanding. Additionally, it addresses the implementation of interfaces and the differences between input and output streams.

Uploaded by

2210520065
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

Important questions

CO3

1. Explain returning objects. Explain by giving an example of the incrByTen() method.

2. Explain different types of final Keywords.

3. Explain inheritance and types of inheritance by giving an example.

4. How to create multilevel inheritance.

5. Explain the difference between method overloading and overriding. Also, explain the advantages
of polymorphism.

6. Explain the Super keyword.

7. Explain the Interface in Java. How to implement the interfaces. What are interface variables?

8. Explain Java Packages, Access protection, and Directory structure of packages. What are the built-
in packages?

CO4

1. Explain exception handling. What are the types of errors?

2. Analyze try, Catch block. Write build-in Exception classes.

3. what is the throws and throw statement. Analyze the difference between them.

4. Explain Multithreaded programming and its advantages.

5. Explain the thread model. What are the methods of thread class with examples?

6. how to create multiple threading.

7. what is Isalive() And Join() method with example.

8. how to set thread priorities. What are the setter and getter methods in thread priority?

9. what is thread synchronization. How the process of inter-thread communication works?

10. How to suspend, Resume, and Stopping threads.

11. Explain a stream and discuss the types of Streams and classes of the Streams with examples.

12. Compare InputStream with OutputStream in Java?

13. Elaborate the types of I / O streams with suitable example code?

14. Demonstrate the Reading and Writing of the files with an example.

15. File handling in Java with file reader and file writer with example program.

16. Given two files with the list of words, write a program to show the common words in both files.
And how to Copy the content of one file into another file.
Coding questions

1. Write a Java program using the final keyword by explaining the types of a final keyword.

2. Write a Java program by using the incrByTen() method.

3. Write a Java program using inheritance to create a child class and parent class. Also, use the multi-
level inheritance by creating the subclasses of the child class.

4. Write a Java program to find whether a number is a palindrome or not using an interface.

5. Write a Java program using the super statement.

6. write a program to show the common words in two files.

7. write a program for overloading and overriding methods.

You might also like