Assignment-3
->.use of abstract classes and interfaces in a Java program with real-world examples
->.to create and access user-defined packages in Java with a complete code example.
->.3exceptions in Java? exception handlers and illustrate their use with suitable examples.
->.concept of the File class and the methods createNewFile(), exists(), getName(), canRead(),
canWrite(), and delete() of the File class in Java. Write a program to demonstrate the output of each
method.
-> threads in Java. Explain the commonly used thread methods with examples. Discuss the
advantages and challenges of using threads.
-> multithreading in Java. Implement a program using threads to print numbers from 1 to 5
in detail the difference between final, finally, and finalize() in Java with examples.
->Java program that creates a child thread in addition to the main thread. Both threads should
execute concurrently and display their respective messages.