Java Practice Exam 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/19

flashcard set

Earn XP

Description and Tags

IT Specialist - Missed Questions

Last updated 1:07 AM on 5/20/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

Order of Commands to Run a Function

1) javac [classname].java

2) [classname] [arg1] [arg2]

2
New cards

True or false…classes can contain main methods

True

3
New cards

Double

3.14

4
New cards

byte

1

5
New cards

short

5000

6
New cards

int

33000

7
New cards

float

3.14f

8
New cards

True or false…Strings can be null

False

9
New cards

Double to integer/Double to byte

Whole number, drop the decimals; no rounding up or down

10
New cards

Vector

Synchronized for thread safety

11
New cards

LinkedList

Used for frequent insertions and deletions without shifting items.

12
New cards

HashSet

A list that does not allow duplicate entries.

13
New cards

Order of do while loops

do{ }while (condition)

14
New cards

Class naming for inheritance

extends

15
New cards

Using a method from a parent class

super

16
New cards

getMessage

Displays details of an exception

17
New cards

InputMismatchException

Occurs when an incorrect data type is entered or read

18
New cards

IOException

Occurs when a file being read from does not exist

19
New cards

All scanner errors…

Are sourced from the scanner class

20
New cards