Java Basics

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/18

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:10 AM on 9/28/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

19 Terms

1
New cards

What type of code is a .java file?

human-readable source code

2
New cards

What type of code is a .class file?

compiled java bytecode that contains machine instructions for the JVM to run the program

3
New cards

What is a .jar file?

a java archive that bundles class files and other resources including a manifest

4
New cards

When does a JAR become runnable?

when the Manifest specifies a Main-Class, which tells Java which class to execute

5
New cards

How do you run a JAR?

java -jar Program.jar

6
New cards

How do you compile a Java source?

javac

7
New cards

How do you run a class?

java ClassName

8
New cards

How do you get the number of arguments?

args.length

9
New cards

JDK

Java Development Kit

10
New cards

What does the JDK do?

it is the development toolkit that is used for developing/compiling Java programs

11
New cards

JRE

Java Runtime Environment

12
New cards

What does a JRE do?

this environment need to run .class Java files which includes runtime libraries and files

13
New cards

JVM

Java Virtual Machine

14
New cards

What does a JVM do?

executes the actual Java bytecode and interfaces with the underlying operating system as an implementation of a JRE

15
New cards

JIT

Just-In-Time compiler

16
New cards

What does the JIT do?

it is part of the JVM that translates specific JVM instructions to CPU instructions

17
New cards

Why is Java portable?

you compile Java into JVM bytecode rather than directly into instructions for one specific operating system/CPU and then the JVM handles the platform-specific execution

18
New cards

Java’s main idea

“Write once, run anywhere”

19
New cards

A main-class must have a…

public static void main(String[ ] ) method