Introduction to Java

0.0(0)
studied byStudied by 1 person
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/27

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.

28 Terms

1
New cards

Java

A high-level, object-oriented, and multi-platform programming language created by Sun Microsystems in 1995.

2
New cards

Write Once, Run Anywhere (WORA)

Java’s feature that allows code to be written once and run on any platform (Windows, Linux, Mac, Android, etc.).

3
New cards

Common Uses of Java

Web apps, mobile apps, enterprise software, AI, IoT, big data, and cloud computing.

4
New cards

Java Runtime Environment (JRE)

Software needed to run Java programs; provides class libraries and system resources.

5
New cards

Advantages of Java

Active community, many learning resources, built-in libraries, high security, platform independence.

6
New cards

Java Virtual Machine (JVM)

A runtime engine that executes Java bytecode by converting it into machine language.

7
New cards

Compiler in Java

Translates Java source code (.java file) into bytecode.

8
New cards

Interpreter in Java

Executes bytecode line by line inside the JVM.

9
New cards

Bytecode

Intermediate code generated by the Java compiler that runs on the JVM.

10
New cards

Java API

A collection of pre-written classes and methods that provide built-in functionalities (e.g., Math, Date).

11
New cards

Class

The basic unit of a Java program that defines objects, data, and methods.

12
New cards

Identifier

A name given to a program component (class, object, or variable). Must follow rules: start with a letter/_/$, case-sensitive, cannot use reserved words.

13
New cards

Reserved Words (Keywords)

Special Java words with predefined meanings (e.g., class, public, static, void, int, if, return).

14
New cards

Main Method

The entry point of a Java program:
public static void main(String[] args)

15
New cards

public

An access modifier that makes the method accessible everywhere.

16
New cards

static

Indicates the method belongs to the class and can run without creating an object.

17
New cards

void

Means the method does not return a value.

18
New cards

String[] args

Parameter of the main method; an array of Strings used to pass arguments to the program.

19
New cards

Array

A collection of similar data types stored together.

20
New cards

String

A sequence of characters (letters, numbers, symbols).

21
New cards

System.out.println()

A command that prints output to the console.

22
New cards

Literal String

Text inside double quotes ("Hello World") that appears exactly as written.

23
New cards

Comment (Single-line)

Starts with // and is ignored by the compiler.

24
New cards

Comment (Multi-line)

Placed between /* and */; ignored by the compiler.

25
New cards

Java Development Kit (JDK)

A complete set of tools (includes JRE + compiler + debugger) for developing and running Java programs.

26
New cards

javac command

Command used to compile Java programs (e.g., javac Demo.java).

27
New cards

java command

Command used to run compiled Java programs (e.g., java Demo).

28
New cards

Execution Steps in Java

Write code → Save as .java → Compile with javac → Run with java.