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

Practical 01

This lab manual outlines the installation and setup of the Java Development Kit (JDK) and Integrated Development Environment (IDE) for Java programming. It includes practical exercises, installation paths, environment variable settings, and justifications for Java programming concepts such as the static main method. Additionally, it lists various JDK versions and provides a sample Java program to test the setup.

Uploaded by

Huzeefa Pathan
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 views2 pages

Practical 01

This lab manual outlines the installation and setup of the Java Development Kit (JDK) and Integrated Development Environment (IDE) for Java programming. It includes practical exercises, installation paths, environment variable settings, and justifications for Java programming concepts such as the static main method. Additionally, it lists various JDK versions and provides a sample Java program to test the setup.

Uploaded by

Huzeefa Pathan
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
You are on page 1/ 2

Java Programming Lab Manual (Solved)

Practical:01
Resource required (additional)
Name of Resource Broad Specification Quantity Remark if any
Java Development Kit
JDK 8 or higher For Java compilation
(JDK)
Integrated
For simplified coding
Development like Eclipse, VS code
Environment (IDE)
Notepad Text editor For command-line programs

Conclusion
In this practical, we downloaded and installed the JDK, checked if it was set up correctly,
and configured the environment. After that, we wrote and ran Java programs to make sure
everything was working properly.

Practical related Questions


Q1: Write installation directory path of your directory?
Ans: The installation directory path of Java is:
C:\Program Files\Java\jdk-17.0.4
2. Write value of path environment variable?
Ans: The value of the PATH environment variable is:
C:\Program Files\Java\jdk-17.0.4\bin
3. List folders created after installation.
Ans: Folders created after installation are:
1. bin
2. conf
3. include
4. jmods
5. legal
6. lib
4. Main Method is declared as static. Justify
Ans: The main method is declared as static so that it can be called by the JVM without creating
an object of the class. This ensures the program starts execution directly.
5. Program is named with class containing main method. justify.

Jamia Polytechnic Akkalkuwa Page No:1 Prepared by: Sayyed Waliullah


Java Programming Lab Manual (Solved)

Ans: In Java, the main method serves as the entry point where the program begins execution.
The JVM (Java Virtual Machine) looks for this method to start running the program. The name
of the class is used to locate and execute the main method as the entry point of the application.

6. Write the options provided by following JDK tools along with their use
1.Java 2.javac 3.javadoc
Ans:
Java
Use: Executes Java applications.
Example:
java ClassName - Runs the compiled Java program.
1. javac
Use: Compiles Java source code (.java files) into bytecode (.class files).
Example:
javac FileName.java - Compiles the Java source file.
2. javadoc
Use: Generates HTML documentation from Java source code comments.
Example:
javadoc FileName.java - Creates documentation from the source file.

7. List different versions of JDK 8. Test the setup using similar programs
Ans: Different versions of JDK 8:
1. JDK 8u40
2. JDK 8u60
3. JDK 8u91
4. JDK 8u102
5. JDK 8u121
6. JDK 8u131
7. JDK 8u144
8. JDK 8u151

TestSetup.java
public class TestSetup {
public static void main(String[] args) {
System.out.println("SYCO : Setup the Java!");
}
}

Jamia Polytechnic Akkalkuwa Page No:2 Prepared by: Sayyed Waliullah

You might also like