Java Flashcards 2

Java Flashcards 2

Assessment

Flashcard

Computers

University

Hard

Created by

Gaurav Singh

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following is NOT a Java access modifier? public, private, internal, protected

Back

internal

2.

FLASHCARD QUESTION

Front

What is the default value of a boolean variable in Java if it’s an instance variable?

Back

false

3.

FLASHCARD QUESTION

Front

Which keyword is used to prevent a class from being inherited?

Back

final

4.

FLASHCARD QUESTION

Front

What is the size of a Java char?

Back

2 bytes

5.

FLASHCARD QUESTION

Front

Which of these exceptions is unchecked in Java? IOException, SQLException, NullPointerException, FileNotFoundException

Back

NullPointerException

6.

FLASHCARD QUESTION

Front

Which collection class maintains insertion order in Java?

Back

LinkedHashMap

7.

FLASHCARD QUESTION

Front

What will happen if you try to inherit from a final class?

Back

Compile-time error

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?