Practical 01
Practical 01
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.
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!");
}
}