[Go to site: main page, start]

0% found this document useful (0 votes)
2 views3 pages

Java Lab Practicals

The document outlines a series of Java programming lab practicals for three batches, focusing on various concepts of Object-Oriented Programming (OOP). Each practical includes tasks such as implementing variables, creating threads, performing string operations, and handling exceptions. The exercises aim to enhance students' understanding of Java through hands-on coding experience.
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)
2 views3 pages

Java Lab Practicals

The document outlines a series of Java programming lab practicals for three batches, focusing on various concepts of Object-Oriented Programming (OOP). Each practical includes tasks such as implementing variables, creating threads, performing string operations, and handling exceptions. The exercises aim to enhance students' understanding of Java through hands-on coding experience.
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

OBJECT ORIENTED PROGRAMMING USING JAVA (OOP’S)

LAB PRACTICALS

BATCH - 01, 02 and 03


1. A. Java program to implement the usage of static ,local and global variables.
B. Java program to create a thread using runnable interface.

2. A. Java program to display “Hello World” and display the size of all the data
types.
B. Java program to display all prime numbers between two limits.

3. A. Java program to implement string operations string length, string concatenate,


sub string.
B. Program to find the factorial of a list of numbers reading input as command line
argument .

4. A. Java program to find the maximum of three numbers.


B. Java program to check whether a number is palindrome or not.

5. A. Java program to check whether the number is odd or even.


B. Java program to import user-defined packages

6. A. Java program to implement default and parameterized constructors.


B. Java program to handle null pointer exception and use the “finally” method to
display a message to the user.

7. A. Java program to implement an array of objects.


B. Java program to catch negative array size Exception. This exception is caused
when the array is initialized to negative values.
8. A. Java program to implement Single Inheritance
B. Java program that demonstrates run-time polymorphism

9. A. Java program to implement Multiple Inheritance using Interface.


B. Java program to add two integers and two float numbers. When no arguments are
supplied give a default value to calculate the sum. Use method overloading.

10. A. Java program to display “Hello World” and display the size of all the data types.
B. Java program to demonstrate a division by zero exception

11. A. Java program to implement the usage of static ,local and global variables.
B. Java program to display all prime numbers between two limits.

12. A. Java program to add two integers and two float numbers. When no arguments
are supplied give a default value to calculate the sum. Use method overloading.
B. Java program to create a thread using runnable interface

13. A. Java program to implement string operations string length, string concatenate,
sub string.
B. Java program to check whether a number is palindrome or not.

14. A. Java program to find the maximum of three numbers.


B. Program to find the factorial of a list of numbers reading input as command line
argument .

15. A. Java program to check whether the number is odd or even.


B. Java program to handle null pointer exception and use the “finally” method to
display a message to the user

You might also like