Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

static field

A field that belongs to the class, with one copy shared by every object.

A static field exists once per class, created when the class is initialized; it is named through the class (Ticket.issued), and reaching it through a reference draws a -Xlint warning.

Examples

  • static int created = 0; is one counter shared by every object of the class.

Read the full section →