What is the main role of Java Development Kit (JDK)?
20242024
What is the main role of Java Development Kit (JDK)?
- A.
To provide only runtime environment for Java Applications
- B.
To provide a Graphical User Interface
- C.
To only compile and run Java Applications
- D.
To create, compile and execute Java Applications
- E.
Question not attempted
Attempted by 177 students.
Show answer & explanation
Correct answer: D
Java Development Kit (JDK) is a software development package used for developing Java applications.
JDK includes:
JRE (Java Runtime Environment)
Java Compiler (
javac)Development tools and libraries
The main role of JDK is to:
Create Java programs
Compile Java source code into bytecode
Execute Java applications
Example:
javac Program.java
java ProgramHere:
javaccompiles the Java programjavaexecutes the compiled program
Therefore, JDK is used to create, compile, and execute Java applications.