0%

The runtime system starts your program by calling which function first?

Correct! Wrong!

Declare a variable that holds the first four digits of Π

Correct! Wrong!

Which keyword lets you call the constructor of a parent class?

Correct! Wrong!

Which type of variable keeps a constant value once it is assigned?

Correct! Wrong!

Which keyword lets you use an interface?

Correct! Wrong!

You get a NullPointerException. What is the most likely cause?

Correct! Wrong!

How does the keyword 'volatile' affect how a variable is handled?

Correct! Wrong!

What method can be used to create a new instance of an object?

Correct! Wrong!

Which are valid keywords in a Java module descriptor (module-infoJava)?

Correct! Wrong!

Normally, to access a static member of a class such as Math.PI, you would need to specify the class "Math". What would be the best way to allow you to use simply "PI" in your code?

Correct! Wrong!

Why are ArrayLists better than arrays?

Correct! Wrong!

What statement returns true if "nifty" is of type String?

Correct! Wrong!

Which is the most reliable expression for testing whether the values of two string variables are the same?

Correct! Wrong!

What language construct serves as a blueprint containing an object's properties and functionality?

Correct! Wrong!

Which statement is NOT true?

Correct! Wrong!

Java Quiz
Well done!
Keep Coming Back For More Such Questions.

Leave a Comment