Brisk
Quiz
Practice. Learn. Score.
Home
🔍
🌙
🏆
Leaderboard
Login
IT
›
Java
⏱
00:00
0/7 answered
Score: 0
🔀 Click here to get new question set
Sign up
to save this score to the leaderboard.
Question 1
What is the primary role of the JVM's automatic garbage collector?
Compiling Java source code down into bytecode
Encrypting sensitive data before it is written to disk
Optimizing SQL queries issued through JDBC connections
Reclaims heap memory used by unreachable objects
Question 2
What is Java "reflection" primarily used for?
Compiling Java source files into bytecode instructions
Automatically formatting source code for readability
Inspecting and manipulating classes at runtime
Encrypting and decrypting sensitive data at runtime
Question 3
What is the contract that equals() and hashCode() overrides must jointly satisfy in Java?
equals() must always return true for any two non-null objects
hashCode() must always return a value greater than zero
Two equal objects must always produce the same hash code
Every object must have a globally unique hash code value
Question 4
What is the purpose of the java.util.function.Function interface?
Represents an action producing no return value
Represents a function accepting T, returning R
Represents a value supplied with no input needed
Represents a boolean-valued test on an argument
Question 5
What is a "checked exception" in Java, e.g. IOException?
An exception the compiler forces you to handle or declare
An exception that can only occur in unit tests
An exception that always immediately crashes the JVM
An exception thrown exclusively by the JVM itself
Question 6
What is the purpose of an annotation like @Override placed above a method in Java?
Physically changes how the method executes at runtime
Automatically generates a matching unit test for the method
Permanently deletes the method from the compiled bytecode
Provides metadata the compiler and tools can process
Question 7
What is the purpose of the "@Deprecated" annotation applied to a Java method?
Forces every caller of the method to catch a checked exception
Immediately deletes the method from the compiled class file
Automatically converts the method into a private one
Signals the method should generally no longer be used
🔀 Click here to get new question set
Sign up
to save this score to the leaderboard.
Share this quiz
𝕏
💬
f
in
🔗
📚 All Quizzes
Browse every category and see the full list of quizzes on BriskQuiz
→
🏠
Home
📚
Categories
🏆
Leaderboard
👤
Profile