Mastering Java + Spring Boot: REST APIs and Microservices

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

1/13

flashcard set

Earn XP

Description and Tags

Udemy Course

Last updated 4:52 PM on 6/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

14 Terms

1
New cards

What command is used to compile a Java program/

javac ProgramName.java

2
New cards

After compiling a Java program, which file is generated?

.class

3
New cards

What command is used to run a compiles Java program?

java ProgramName

4
New cards

What happens if you try to run a Java program without compiling it first?

Java will give a “class not found” error

5
New cards

What is a valid identifier in Java?

variable_1?

6
New cards

What is the range of values for a byte data type in Java?

-128 to 127

7
New cards

What is the correct way to declare a constant in Java?

final int PI = 3.14;

8
New cards

What data type has the highest precision in Java?

double

9
New cards

What is the default value of a boolean variable in Java?

false

10
New cards

T/F: Java uses the Unicode character set to represent characters.

True

11
New cards

What is used to obtain the command-line arguments in Java?

String[] args

12
New cards

What is the output of this code:

public class Test {

public static void main(String[] args) {

System.out.println(args[0]);

}

}

Command-line input: java Test Hello

Hello

13
New cards

T/F: char letter = ‘AB’; is a valid declaration of a variable in Java

False

14
New cards

In Java, what will be the result of the following statement?

float f = 10/4;

2.0