Skip to content
CodeKruPro

Stage 2 of 11

Predict the output

Read short code and type exactly what it prints.

  1. Not startedStrings and immutabilityString operations, joining with numbers, and comparisons.0/10
  2. Not startedNumbers and arithmeticInteger division, remainders, overflow, decimals and rounding.0/10
  3. Not startedOperators, conditions and loopsIncrement operators, precedence, short-circuiting and loop counts.0/10
  4. Not startedReferences, copies and mutabilityTwo names for one object, copies, and passing values to functions.0/9
  5. Not startedCollectionsLists, sets and maps: order, duplicates, removal and missing keys.0/11
  6. Not startedExceptions and finallyWhich blocks run, in which order, and what is returned.0/10
  7. Not startedClasses, static members and inheritanceOverriding, hiding, constructors order and shared state.0/10
  8. Not startedScope, closures and lambdasWhich variable a name refers to, and what a closure captures.0/9
Not startedNot startedIn progressIn progressSolvedSolvedPro+Pro+

The first 2 questions of each topic are free. Pro+ opens every question.