0% found this document useful (0 votes)
7 views

java internal sets

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

java internal sets

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Department of CSE JAVA PROGRAMMING INTERNAL LAB DOE:03-05-2023

1. a) Write a JAVA program to display default value of all primitive data type of JAVA
b) Write a java program that display the roots of a quadratic equation ax2 +bx=0. Calculate the
discriminate D and basing on value of D, describe the nature of root.

Department of CSE JAVA PROGRAMMING INTERNAL LAB DOE:03-05-2023


2. a) Write a JAVA program to implement constructor overloading.
b) Write a JAVA program implement method overloading.

Department of CSE JAVA PROGRAMMING INTERNAL LAB DOE:03-05-2023


3. a) Write a JAVA program to implement Single Inheritance
b) Write a JAVA program to implement multi level Inheritance

Department of CSE JAVA PROGRAMMING INTERNAL LAB DOE:03-05-2023

4. a) Write a JAVA program give example for “super” keyword.


b) Write a JAVA program to implement Interface. What kind of Inheritance can be achieved?

Department of CSE JAVA PROGRAMMING INTERNAL LAB DOE:03-05-2023


5. a) Write a java program for abstract class to find areas of different shapes
b) Write a JAVA program to implement multi level Inheritance

Department of CSE JAVA PROGRAMMING INTERNAL LAB DOE:03-05-


2023
6. a) Write a JAVA program that implements Runtime polymorphism
b) Write a JAVA program for creation of Illustrating finally

Department of CSE JAVA PROGRAMMING INTERNAL LAB DOE:03-05-2023


7. Write a JAVA program that creates threads by extending Thread class .First thread display
“Good Morning “every 1 sec, the second thread displays “Hello “every 2 seconds and the third
display “Welcome” every 3 seconds ,(Repeat the same by implementing Runnable)

Department of CSE JAVA PROGRAMMING INTERNAL LAB DOE:03-05-


2023
8.a) Write a program illustrating isAlive and join ()
b) Write a Program illustrating Daemon Threads.

Department of CSE JAVA PROGRAMMING INTERNAL LAB DOE:03-05-


2023
9. a) Write a JAVA program illustrate class path
b) Write a JAVA program Illustrating Multiple catch clauses

Department of CSE JAVA PROGRAMMING INTERNAL LAB DOE:03-05-


2023
10. a) Write a JAVA program that describes exception handling mechanism
b) Write a JAVA program Illustrating Multiple catch clauses

You might also like