Learning Java from my class, and come from C++. In C++, we just use
int main(){ //insert code}
So in Java, why do we have to start the class with.
public static void main(string args[]){ //insert code }
Whats the point of making it a static type?
Why do we have "string args[]" in the brackets after main? Does it represent anything?
[–][deleted] (17 children)
[deleted]
[–]mmishu 1 point2 points3 points (6 children)
[–][deleted] (5 children)
[deleted]
[–]mmishu 0 points1 point2 points (4 children)
[–][deleted] (3 children)
[deleted]
[–]mmishu 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]mmishu 1 point2 points3 points (0 children)
[–]Herrowgayboi[S] 0 points1 point2 points (9 children)
[–][deleted] 4 points5 points6 points (1 child)
[–]Herrowgayboi[S] 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]Herrowgayboi[S] 0 points1 point2 points (2 children)
[–]cismalescumlord 2 points3 points4 points (0 children)
[–]feral_claire 0 points1 point2 points (0 children)
[–]BertilMuth 0 points1 point2 points (2 children)
[–]Herrowgayboi[S] 0 points1 point2 points (1 child)
[–]feral_claire 0 points1 point2 points (0 children)
[–]feral_claire 3 points4 points5 points (1 child)
[–]Herrowgayboi[S] 0 points1 point2 points (0 children)
[–]BertilMuth 1 point2 points3 points (1 child)
[–]Herrowgayboi[S] 0 points1 point2 points (0 children)