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

Java_Lab_Manual

The document is a practical file from Agarwal P.G. College, Jaipur, containing a list of Java programming exercises. It includes tasks such as printing messages, swapping numbers, creating calculators, and implementing various programming concepts like arrays, inheritance, and multithreading. Each exercise aims to enhance students' understanding of Java programming fundamentals.

Uploaded by

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

Java_Lab_Manual

The document is a practical file from Agarwal P.G. College, Jaipur, containing a list of Java programming exercises. It includes tasks such as printing messages, swapping numbers, creating calculators, and implementing various programming concepts like arrays, inheritance, and multithreading. Each exercise aims to enhance students' understanding of Java programming fundamentals.

Uploaded by

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

‭Agarwal P.G.

College‬

‭(Jaipur)‬

‭Practical File‬

‭ .‬ ‭Write a Java program to print “Welcome To The Java”.‬


1
‭2.‬ ‭Write a Java program to swap two numbers without the 3rd variable.‬
‭3.‬ ‭Write a Java program to create a calculator for all arithmetic operations.‬
‭4.‬ ‭Write a Java program to find the largest of three numbers.‬
‭5.‬ ‭Write a Java program to check whether a number is even or odd.‬
‭6.‬ ‭Write a Java program to determine if a year is a leap year.‬
‭7.‬ ‭Write a Java program to find the grade of a student based on marks.‬
‭8.‬ ‭Write a Java program to check if a character is a vowel or consonant.‬
‭9.‬ ‭Write a Java program to Check if a given number is positive, negative, or zero.‬
‭10.‬ ‭Write a Java program to print the first N Fibonacci numbers.‬
‭11.‬ ‭Write a Java program to Check if a given number is an armstrong number.‬
‭12.‬ ‭Write a Java program to Create Student Object class & Create Student Objects.‬
‭13.‬ ‭Write a java program to create a Display() methode to print Objects.‬
‭14.‬ ‭Write a Java program to create Array.‬
‭15.‬ ‭Write a Java program to create 2d Array.‬
‭16.‬ ‭Write a Java program to print Array using For loop & Foreach loop.‬
‭17.‬ ‭Write a program to create an Array of Object of Employe class.‬
‭18.‬ ‭Write a Java program to create String and apply the following methods.‬
‭length(), charAt(), substring(), toLowerCase(), toUpperCase(), trim(), split(), replace(), indexOf()‬

‭19.‬ ‭Write a Java program to apply all types of inheritance.‬


‭1. Single level 2. Multi level 3.Hierarchical Inheritance 4. Hybrid Inheritance‬

‭20.‬ ‭Write a Java program to achieve polymorphism‬


‭1. RunTime polymorphism 2. CompileTime polymorphism‬

‭21.‬ ‭Write a java program to use Multithreading programing and use following methods.‬
‭1. run() 2. Start() 3. Sleep() 4. Join()‬

You might also like