Java Placement Quiz

Naveen AnamaneniUpdated · 4 min read

Before a music teacher starts lessons with a new student, they usually ask them to play a few short pieces. Ten minutes later the teacher knows whether to begin with scales, polish what the student already plays, or go straight to the hard pieces. This quiz does the same for Java. Answer the 10 questions below, submit, and you will get a suggested track with a link to where you should start. It takes about five minutes.

The Three Tracks

This course is written once but can be read in three ways.

TrackWho it suitsHow to use the course
LearnStudents, career switchers and anyone new to JavaGo lesson by lesson from the start, doing every practice task
RefreshDevelopers who know Java, often from the Java 8 daysCatch up on modern Java first, then the topics interviews ask most
Deep DiveExperienced engineers who want to know why Java behaves as it doesRead the JVM, memory, concurrency and performance lessons in depth

The Quiz

Questions 1 to 4 check the basics, 5 to 7 everyday Java, and 8 to 10 advanced topics.

Java placement quiz

10 questions
1What does System.out.println(10 / 4); print?
2Given String s1 = "hi"; and String s2 = new String("hi");, what is s1 == s2?
3Which keyword stops a method from being overridden?
4Which map keeps its keys in sorted order?
5If you override equals(), which other method must you also override?
6What happens when you run List.of(1, 2, 3).add(4);?
7What does the compiler generate for record Point(int x, int y) {}?
8What does volatile guarantee for a field?
9What is the main benefit of virtual threads?
10What does Stream.of(1, 2, 3).peek(System.out::print); print?

What Your Score Means

ScoreTrackWhere to start
0 to 4LearnWhat Is Java, then every lesson in order
5 to 7RefreshJava 9 to 11 Features, then the modern Java lessons and the topics interviews ask most
8 to 10Deep DiveJVM Architecture Overview, then memory, bytecode, collections internals and concurrency

Was this tutorial helpful?