RE: Learning Java 01-11-2015, 05:48 PM
#21
(01-11-2015, 09:12 AM)Oni Wrote: Security flaws, no global variables, and not to mention the necessity of a JRE. That being said, it is cross-platform, versatile, and I know a lot of people that use it. Personally, I dislike it, though.
No global variables is incorrect.
Code:
public class Driver
{
public static int x = 10;
public static void main(String args[]){
x++;
method();
}
public static void method(){
x++;
}
}
#MakeSinisterlySexyAgain