can somebody tell me the line:
public static void main(String[] args) {}
especially the highlighted ones in detail.
why do we need to use static? public?
Arthas 0 Light Poster
Recommended Answers
Jump to PostPublic: So that your class will be accessed by others
Static: This tells that this or your main method class won't be instantiated.you need to save your program with the class name which contains your main method (public).
String args[] : is an array of command line …
All 3 Replies
cale.macdonald 4 Junior Poster
mytime19 0 Junior Poster in Training
BestJewSinceJC 700 Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.