0

Declare a static, stuck on Java

I am stuck on an extremely basic Java question, and I honestly don't know how to proceed. The question is this: "Fill in the blank to declare a static variable." There is only a blank, so nothing precedes it and nothing comes after. I have tried "static", "public static", "private static", "static int" and several other combinations, including ending with ; and seemingly, nothing works.

9th Oct 2023, 8:43 AM
Thomas
2 ответов
+ 4
Is this in the intermediate course under the lesson "static"?
9th Oct 2023, 6:53 PM
Ausgrindtube
Ausgrindtube - avatar
+ 3
Thomas There is not enough information for clear answering.. Please report to sl. Temporarily, try public static int x = 0;
13th Oct 2023, 3:37 AM
Jayakrishna 🇮🇳