
Java Concepts Quiz
Quiz
•
Other
•
University
•
Medium
Crackify Crackify
Used 1+ times
FREE Resource
Enhance your content in a minute
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Where is a local variable stored in Java?
Stack
Heap
PermGen
Code Segment
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which memory area stores objects in Java?
Stack
Heap
Method Area
Registers
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method returns the hash code of an object?
hashValue()
hash()
hashCode()
getHash()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the contract between equals() and hashCode()?
If two objects are equal, they must have the same hash code
If hash codes are same, objects are always equal
They are unrelated
Only equals() matters in Collections
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you override equals() but not hashCode()?
Compilation error
Runtime error
May break hash-based collections
Nothing happens
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data structure does HashMap use internally?
Array
LinkedList
Array + LinkedList/Tree
TreeMap
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to compare contents of two strings?
==
equals()
compare()
hashCode()
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Gk quiz January
Quiz
•
12th Grade - University
20 questions
Starbucks Knowledge Quiz
Quiz
•
University - Professi...
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
13 questions
Vague pronouns
Quiz
•
6th Grade - Professio...
20 questions
sampling
Quiz
•
University
20 questions
bread and dough
Quiz
•
10th Grade - University
18 questions
Blox Fruits quiz (not finished but try it!)
Quiz
•
KG - Professional Dev...
15 questions
Among Us (The Skelds)
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Other
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
25 questions
Waves-8th Grade Physical Science
Quiz
•
KG - University
41 questions
Unit 8 Key Terms
Quiz
•
11th Grade - University
10 questions
Product & Quotient Derivative Rules
Quiz
•
University
5 questions
How to Calculate Force - Newton's 2nd Law of Motion
Interactive video
•
10th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
