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

Java Program

The document contains a series of Java programs that demonstrate various programming concepts and functionalities. These include displaying messages, using data types, implementing variable scopes, performing string operations, and handling exceptions. Additionally, it covers object-oriented principles such as inheritance, polymorphism, and threading.

Uploaded by

deepaklokesh086
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)
4 views3 pages

Java Program

The document contains a series of Java programs that demonstrate various programming concepts and functionalities. These include displaying messages, using data types, implementing variable scopes, performing string operations, and handling exceptions. Additionally, it covers object-oriented principles such as inheritance, polymorphism, and threading.

Uploaded by

deepaklokesh086
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
You are on page 1/ 3

Java program to display “Hello World” and display the size of all the data types.

Java program to implement the usage of static, local and global variables.

Java program to implement string operations string length, string concatenation, substring .

Java program to find the maximum of three numbers.

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

Java program to implement default and parameterized constructors.

Java program to implement an array of objects.

Java program to implement Single Inheritance.

Java program to implement Multiple Inheritance using Interface.


Java program to demonstrate a division by zero exception.

Java program to demonstrate run-time polymorphism.

Java program to catch negative array size exception. This exception is caused when the array is
initialized to negative values.

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

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

Java program to find the factorial of the list of numbers reading input as command line argument.

Java program to display all prime numbers between two limits.

Java program to create a thread using Runnable Interface.

You might also like