0

Hi all,
I'm just starting Java and have read some tutorials and reading also thinking in Java and I see it is a good language. I have a question though, what are MINIMUM requirement of ANY Java program for it to run?

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by Stefano Mtangoo
0

Every Java program needs a class defined in the file. You can define more than one class in a file and atleast one class as public and its name should be that of the file. In that public class you define main() method with public static void which is the trigger point for the java interpreter.

In my openion each program must have a class.

katharnakh.

0

Every Java program needs a class defined in the file. You can define more than one class in a file and atleast one class as public and its name should be that of the file. In that public class you define main() method with public static void which is the trigger point for the java interpreter.

In my openion each program must have a class.

katharnakh.

Full and self expalanatory!
Thanks!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.