+ 1

What's the difference between static void and void() { ?

For example: Class myClass { void type() { System.out.println("I'm confused"); class myClass { public static void type() { System.out.println("I need help");

21st Jan 2018, 6:46 PM
Jaren Dogan
Jaren Dogan - avatar
3 Réponses
+ 6
if you dont want to require access to your class method then use static
21st Jan 2018, 7:21 PM
D_Stark
D_Stark - avatar
21st Jan 2018, 6:57 PM
1of3
1of3 - avatar