0% found this document useful (0 votes)
3 views1 page

Java Lab Programs for Beginners

The document outlines a series of Java lab programs for students in the Department of Computer Applications at Krishnarajapura village, Bangalore. It includes two parts: Part A focuses on basic Java concepts such as data types, variable usage, string operations, and inheritance, while Part B covers more advanced topics like multiple inheritance, exception handling, method overloading, and user-defined packages. The programs are designed to enhance practical understanding of Java programming.

Uploaded by

prathikmore005
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)
3 views1 page

Java Lab Programs for Beginners

The document outlines a series of Java lab programs for students in the Department of Computer Applications at Krishnarajapura village, Bangalore. It includes two parts: Part A focuses on basic Java concepts such as data types, variable usage, string operations, and inheritance, while Part B covers more advanced topics like multiple inheritance, exception handling, method overloading, and user-defined packages. The programs are designed to enhance practical understanding of Java programming.

Uploaded by

prathikmore005
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

Krishnarajapura village, Shivakote post, Bangalore-89

(NAAC Accredited)
Department of Computer Applications
JAVA LAB PROGRAMS

PATR – A
1. Java program to display “Hello World” and display the size of all the data types.
2. Java program to implement the usage of static, local and global variables.
3. Java program to implement string operations string length, string concatenate, substring
4. Java program to find the maximum of three numbers
5. Java program to check whether the number is odd or even.
6. Java program to implement Single Inheritance

PART – B
1. Java program to implement Multiple Inheritance using Interface
2. Java program to demonstrate a division by zero exception
3. 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.
4. Java program that demonstrates run-time polymorphism.
5. Java program to handle null pointer exception and use the “finally” method to display a
message to the user.
6. Java program to import user-defined packages

You might also like