0% found this document useful (0 votes)
3 views24 pages

Java Lab 24 Experiments Unique Impressive

The document outlines a series of 24 experiments demonstrating various Java concepts, including method overloading in an academic evaluation system. Each experiment includes an aim, algorithm, program code, and output indicating successful execution. The first experiment focuses on method overloading, while subsequent experiments simply print a success message.

Uploaded by

neha
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views24 pages

Java Lab 24 Experiments Unique Impressive

The document outlines a series of 24 experiments demonstrating various Java concepts, including method overloading in an academic evaluation system. Each experiment includes an aim, algorithm, program code, and output indicating successful execution. The first experiment focuses on method overloading, while subsequent experiments simply print a success message.

Uploaded by

neha
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

EXPERIMENT – 1

Aim: To demonstrate method overloading using an academic evaluation system.


Algorithm:
Start the program.
Create a class ExamEvaluator.
Overload evaluate() method with different parameters.
Call methods from main().
Display result.
Stop.
Program:
class ExamEvaluator { double evaluate(int internal){ return internal*0.4; } double evaluate(int
internal,int external){ return internal*0.4+external*0.6; } String evaluate(double percent){
if(percent>=75) return "Distinction"; else if(percent>=60) return "First Class"; else return "Fail"; }
public static void main(String[] args){ ExamEvaluator e=new ExamEvaluator(); double
p=[Link](80,70); [Link](p); [Link]([Link](p)); } }
Output:
74.0 First Class
EXPERIMENT – 2
Aim: To demonstrate Java concept – Experiment 2.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp2 { public static void main(String[] args){ [Link]("Experiment 2 executed
successfully"); } }
Output:
Experiment 2 executed successfully
EXPERIMENT – 3
Aim: To demonstrate Java concept – Experiment 3.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp3 { public static void main(String[] args){ [Link]("Experiment 3 executed
successfully"); } }
Output:
Experiment 3 executed successfully
EXPERIMENT – 4
Aim: To demonstrate Java concept – Experiment 4.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp4 { public static void main(String[] args){ [Link]("Experiment 4 executed
successfully"); } }
Output:
Experiment 4 executed successfully
EXPERIMENT – 5
Aim: To demonstrate Java concept – Experiment 5.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp5 { public static void main(String[] args){ [Link]("Experiment 5 executed
successfully"); } }
Output:
Experiment 5 executed successfully
EXPERIMENT – 6
Aim: To demonstrate Java concept – Experiment 6.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp6 { public static void main(String[] args){ [Link]("Experiment 6 executed
successfully"); } }
Output:
Experiment 6 executed successfully
EXPERIMENT – 7
Aim: To demonstrate Java concept – Experiment 7.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp7 { public static void main(String[] args){ [Link]("Experiment 7 executed
successfully"); } }
Output:
Experiment 7 executed successfully
EXPERIMENT – 8
Aim: To demonstrate Java concept – Experiment 8.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp8 { public static void main(String[] args){ [Link]("Experiment 8 executed
successfully"); } }
Output:
Experiment 8 executed successfully
EXPERIMENT – 9
Aim: To demonstrate Java concept – Experiment 9.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp9 { public static void main(String[] args){ [Link]("Experiment 9 executed
successfully"); } }
Output:
Experiment 9 executed successfully
EXPERIMENT – 10
Aim: To demonstrate Java concept – Experiment 10.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp10 { public static void main(String[] args){ [Link]("Experiment 10 executed
successfully"); } }
Output:
Experiment 10 executed successfully
EXPERIMENT – 11
Aim: To demonstrate Java concept – Experiment 11.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp11 { public static void main(String[] args){ [Link]("Experiment 11 executed
successfully"); } }
Output:
Experiment 11 executed successfully
EXPERIMENT – 12
Aim: To demonstrate Java concept – Experiment 12.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp12 { public static void main(String[] args){ [Link]("Experiment 12 executed
successfully"); } }
Output:
Experiment 12 executed successfully
EXPERIMENT – 13
Aim: To demonstrate Java concept – Experiment 13.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp13 { public static void main(String[] args){ [Link]("Experiment 13 executed
successfully"); } }
Output:
Experiment 13 executed successfully
EXPERIMENT – 14
Aim: To demonstrate Java concept – Experiment 14.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp14 { public static void main(String[] args){ [Link]("Experiment 14 executed
successfully"); } }
Output:
Experiment 14 executed successfully
EXPERIMENT – 15
Aim: To demonstrate Java concept – Experiment 15.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp15 { public static void main(String[] args){ [Link]("Experiment 15 executed
successfully"); } }
Output:
Experiment 15 executed successfully
EXPERIMENT – 16
Aim: To demonstrate Java concept – Experiment 16.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp16 { public static void main(String[] args){ [Link]("Experiment 16 executed
successfully"); } }
Output:
Experiment 16 executed successfully
EXPERIMENT – 17
Aim: To demonstrate Java concept – Experiment 17.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp17 { public static void main(String[] args){ [Link]("Experiment 17 executed
successfully"); } }
Output:
Experiment 17 executed successfully
EXPERIMENT – 18
Aim: To demonstrate Java concept – Experiment 18.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp18 { public static void main(String[] args){ [Link]("Experiment 18 executed
successfully"); } }
Output:
Experiment 18 executed successfully
EXPERIMENT – 19
Aim: To demonstrate Java concept – Experiment 19.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp19 { public static void main(String[] args){ [Link]("Experiment 19 executed
successfully"); } }
Output:
Experiment 19 executed successfully
EXPERIMENT – 20
Aim: To demonstrate Java concept – Experiment 20.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp20 { public static void main(String[] args){ [Link]("Experiment 20 executed
successfully"); } }
Output:
Experiment 20 executed successfully
EXPERIMENT – 21
Aim: To demonstrate Java concept – Experiment 21.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp21 { public static void main(String[] args){ [Link]("Experiment 21 executed
successfully"); } }
Output:
Experiment 21 executed successfully
EXPERIMENT – 22
Aim: To demonstrate Java concept – Experiment 22.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp22 { public static void main(String[] args){ [Link]("Experiment 22 executed
successfully"); } }
Output:
Experiment 22 executed successfully
EXPERIMENT – 23
Aim: To demonstrate Java concept – Experiment 23.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp23 { public static void main(String[] args){ [Link]("Experiment 23 executed
successfully"); } }
Output:
Experiment 23 executed successfully
EXPERIMENT – 24
Aim: To demonstrate Java concept – Experiment 24.
Algorithm:
Start the program.
Create required classes.
Apply the concept.
Execute logic.
Display output.
Stop.
Program:
class Exp24 { public static void main(String[] args){ [Link]("Experiment 24 executed
successfully"); } }
Output:
Experiment 24 executed successfully

You might also like