What is the main role of Java Development Kit (JDK)?

20242024

What is the main role of Java Development Kit (JDK)?

Answer: D. To create, compile and execute Java ApplicationsJava Development Kit (JDK) is a software development package used for developing Java applications. JDK includes: JRE (Java Runtime Environment) Java Compiler…

  1. A.

    To provide only runtime environment for Java Applications

  2. B.

    To provide a Graphical User Interface

  3. C.

    To only compile and run Java Applications

  4. D.

    To create, compile and execute Java Applications

  5. E.

    Question not attempted

Attempted by 610 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 Program

Here:

  • javac compiles the Java program

  • java executes the compiled program

Therefore, JDK is used to create, compile, and execute Java applications.

Explore the full course: Rssb Basic Computer Instructor

Loading lesson…