01. How to download the JDK?
First, verify that the JDK file is available on your laptop.
*Open the command prompt
*Write the "java --version".
*Then click the Enter button.
*If the JDK software is available in the system, show the JDK version.
*If not available the JDK file on the laptop, then we will install the JDK software.
02. How to write a Java program using Notepad?
*Open the Note pad ++ or Note pad
*Write the Java program
*Save the program in (name .java)
03. How to set the command prompt path?
Open the terminal or Command prompt
Write the "cd desktop" then the Enter button
If the path is not set, then check the saved file path.
Copy the location and paste the command prompt (cd path)
Then enter the button
If the path is set, then use the compiled code and run the code.
04. How to compile and run the Java program using the command prompt?
Open Terminal or Command Prompt
Write the folder where your .java file is saved.
Use the javac command to compile the code (EX, javac HelloWorld.java)
Run it with the Java command (Ex, java HelloWorld)
Should see the output
05. Software name for the Java coding
*Eclipse IDE
*VS CODE
*Intel j
06. What is the JDK?
*JDK-Java development kit.
*It is a software development kit used to write, compile, and run Java programs.
*Itβs a software development kit (SDK) used to develop applications in the Java programming language.
*Converts .java source files into .class files.
07. What is the JRE?
*JRE-Java run time environment.
*Runs the compiled Java programs using the JVM.
*The JRE provides the runtime environment (memory, libraries).
08. What is the JVM?
JVM- Java Virtual Machine
Runs Java bytecode
Every time you run a Java program
09.What is JIT?
JIT = Just-In-Time Compiler
Makes Java run faster by compiling parts of the code at runtime
Automatically, inside the JVM
Top comments (0)