944,028 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Marked Solved
  • Views: 418
  • Java RSS
Nov 5th, 2009
0

Java Minimum essentials

Expand Post »
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?
Similar Threads
Reputation Points: 462
Solved Threads: 392
Senior Poster
evstevemd is offline Offline
3,681 posts
since Jun 2007
Nov 6th, 2009
0
Re: Java Minimum essentials
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.
Reputation Points: 19
Solved Threads: 34
Posting Whiz in Training
katharnakh is offline Offline
237 posts
since Jan 2006
Nov 6th, 2009
0
Re: Java Minimum essentials
Click to Expand / Collapse  Quote originally posted by katharnakh ...
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!
Reputation Points: 462
Solved Threads: 392
Senior Poster
evstevemd is offline Offline
3,681 posts
since Jun 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Fetch and display online images.
Next Thread in Java Forum Timeline: Is there something with my "insert" method for my binary search tree?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC