JAVA_Sample Practical Questions for LPW
JAVA_Sample Practical Questions for LPW
Instructions:
1. Any two random Program assign.
2. Maximum 30 Min given to each student.
3. Viva questions expected based on complete syllabus.
4. Bring your own Laptop with working JAVA setup.
1) Write a Java program that displays the default name and priority of main thread. Change the
name to, My First Thread and priority to 3. Display the modified properties to the console.
2) Using threads, write a Java Program that implements a simple calculator. Create separate
threads that perform addition, subtraction, multiplication and division operations.
3) Write Program to create Object Array of Circle class which able to provide method for
Area calculation.
4) Demonstrate use of All Access Specifier in your java program to access different variables.
5) Create OnlineShoping Class which have two child class FlipKart and Amazon. WAP in
which Amazon object can access property of Onlineshoping Class.
6) WAP to use Constructor Overloading in Person Class.
7) WAP to use Method Overloading in Car Class.
8) WAP to use Method Overriding in Government Class.
9) WAP to demonstrate Exception handling in Fruit Class.
10) WAP to copy content of one file to another file.
11) WAP to demonstrate use of Button click event handling.
12) Create Interface with multiple abstract method and create implementation class for that
interface.