Start learning →

Which keyword introduced in Java 10 infers variable types automatically?

Aval keyword
Bvar keyword
Cauto keyword
Dlet keyword
Answer & Solution
Correct answer: B. var keyword
Java 10 introduced the var keyword to allow local variable type inference.
Practise this question with Quill — ICSE Class 8 →

Keep practising Java Data Types and Variables

Browse all Java Data Types and Variables questions for ICSE Class 8, or explore more Computer Applications topics.

Start a Java Data Types and Variables lesson →