Java Foundations 1 Flashcards
What does JDK stand for?
Java Development Kit
True or False: OpenJDK is an open-source implementation of the Java Platform, Standard Edition.
True
What is the primary purpose of an IDE in Java development?
To provide a user-friendly environment for writing, compiling, and debugging code.
What does the ‘javac’ command do?
It compiles Java source code into bytecode.
What does the ‘java’ command do?
It runs Java applications by executing bytecode on the Java Virtual Machine (JVM).
Fill in the blank: Compiling converts ________ code into bytecode.
source
What is bytecode?
Bytecode is an intermediate representation of Java code that the JVM can execute.
What is the default output folder for compiled Java classes?
The ‘out’ folder.
Multiple Choice: Which command would you use to compile a Java file named ‘Example.java’?
‘javac Example.java’
True or False: You can run a Java application without compiling it first.
False
What is the role of the Java Virtual Machine (JVM)?
To execute bytecode and provide a runtime environment for Java applications.
Fill in the blank: The primary tool used to write Java applications is an ________.
IDE
What is the difference between compiling and running a Java program?
Compiling translates source code into bytecode, while running executes the bytecode.
What file extension does a Java source file have?
.java
What file extension does a compiled Java bytecode file have?
.class