+ 2
In java below 1.7version, Without writing main method & static block is it possible to print some statements to the console?How?
2 odpowiedzi
+ 1
You always need a main method when writing a Java program. Otherwise, the compiler won't know where it begins.
+ 1
Frenchtoast u r right but this rule is applicable only for java 1.7 versions & above but not for below 1.7v