Java Programming Week 1

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

1/16

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:16 PM on 10/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

17 Terms

1
New cards

What is .java file

Source Code

2
New cards

What is javac

Check & Compiles

3
New cards

What is .class file

compiled Java bytecode

4
New cards

JVM whats its role?

Executes bytecode

5
New cards

Different OS means?

Different JVM

6
New cards

What is the main method?

Place where Java program starts

EXTRA: Class-name must match filename!

7
New cards

What is the role of variables

Store and work with information

8
New cards

What are the 3 parts of a variable

type, name, value

9
New cards

What are the primitive data types

byte, short, int, long, double, float, boolean, char

10
New cards

Size of data types

byte → 1 byte

short → 2 bytes

int → 4 bytes

long → 8 bytes

float → 4 bytes

double → 8 bytes

char → 2 bytes

11
New cards

What condition to result decimal value?

At least one operand is a decimal value

12
New cards

Increase first then use value

y = ++x

13
New cards

use value first then increase

y = x++

14
New cards

What is the way to read user input?

the Scanner object

15
New cards

String format Specificers

%s - any type

%d - integer

%f - float, double

%e - float double

%nX - width n

%.nX - use n decimals

16
New cards

How does seeding work for random generator

Creates a random number generator with given

starting point (the seed). Sequence is the same if

the provided number is the same.

17
New cards

What is the use case alike of a switch?

It is alternative to repeated if-construction on value of var x