~/ learn/ java-from-zero/ cards/ Variables, assignment & var
1 of 3

Type a var declaration

Type a var declaration

Answer

var message = "ready";

The compiler infers message is a String from the initialiser. It is not dynamic typing — the type is fixed at compile time.

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/bf4a596f-f0da-4a21-bcba-f2e1f61f1721/flashcard utf-8 LF