Skip to content

Quiz · Java

Java Basics Quiz: Syntax, Variables & Data Types

A Java quiz for beginners: the main method, primitive types, integer division, string concatenation, casting, char arithmetic, final and equals().

Questions
15
Difficulty
Easy
Time
~8min
Per question
15sec

What it covers

Java

A topic in Programming & Coding.

Java programming quizzes on types and strings, predicting Java code output, and OOP with classes, inheritance, interfaces and polymorphism.

Before you start

How it works

  1. 1

    The clock

    You have 15 seconds for each question. When time runs out, the question counts as wrong.

  2. 2

    Your answer

    Your first choice is the one that counts. It is checked straight away, with an explanation where there is one.

  3. 3

    The score

    At the end you see your score and can go back through every question and its answer.

  4. 4

    The XP

    XP scales with your score. Replays earn XP only when you beat your previous best.

From players

Ratings

Play next

All of Java

Programming & Coding · Java

Java Code Output Quiz: Predict the Result

Java output questions: predict what real code prints, from loops, immutable strings and == versus equals() to Integer caching and switch fall-through.

Medium difficulty15 questions~10 min
+120 XPPlay

Programming & Coding · Java

Java OOP Quiz: Classes, Inheritance & Interfaces

A Java OOP quiz: constructors and super(), access modifiers, extends and implements, overloading versus overriding, polymorphism and static members.

Hard difficulty15 questions~12 min
+150 XPPlay