Topic 1: Introduction to Java & Program Structure

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/10

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

11 Terms

1
New cards

Q: What is Java?

A high-level, object-oriented, and platform-independent programming language developed by Sun Microsystems (now Oracle).

2
New cards

Q: What does "platform-independent" mean in Java?

It means Java code can run on any operating system that has a Java Virtual Machine (JVM).

3
New cards

Q: What is the JVM?

The Java Virtual Machine runs Java bytecode and enables Java’s platform independence.

4
New cards

Q: What is the JDK?

The Java Development Kit is a software development environment that includes tools like the compiler (javac), debugger, and Java libraries.

5
New cards

Q: What is the JRE?

The Java Runtime Environment includes the JVM and standard Java libraries. It allows users to run Java applications.

6
New cards

Q: What is bytecode in Java?

Bytecode is the intermediate code (.class files) generated by the Java compiler and executed by the JVM.

7
New cards

Q: What is a Java class?

A class is a blueprint for creating objects. It defines fields (state) and methods (behavior).

8
New cards

Q: What is the entry point of a Java application?

The main method: public static void main(String[] args)

9
New cards

Q: What are comments in Java?

Comments are ignored by the compiler and are used to describe code. Types: single-line (//), multi-line (/* /), and Javadoc (/* */).

10
New cards

Q: What is the naming convention for Java source files?

The filename should match the public class name and have a .java extension. Example: MyClass.java

11
New cards