Multiple choice technology programming languages

A top level class can be marked as

  1. public

  2. synchronise

  3. private

  4. transient

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Top-level classes (not nested inside another class) can only be marked 'public' or have default (package) access. Synchronized, private, and transient modifiers are not allowed at the top level - synchronized is used for methods, and private/transient are for class members. Options B, C, D are incorrect modifiers for top-level classes.