0
As static method can access only static data members & methods so how we can manipulate non-static data inside main method ?
public static void main(String[] args) {}
1 Odpowiedź
0
Main method cannot access non-static data within its block. If we try to do so compiler will throw an error saying 'cannot access non-static data from static context'.. !!