0
Quite confusing line of main in java.
hey guys may you please give me a detailed explaination on this line of main . class MyClass { public static void main(String[] args) Well im an absolute begginer to java ,you can say
3 Antworten
+ 1
public means that it is accessible from any source, static means that you can call it without instantiate it, void is used when you make a function without return value, and String[] args is used to save the parameters into a String array
Hope it helps you!
+ 1
what is instantiating?
+ 1
Read this explanation from Peter Kottas :)
Class in programming is just a template that defines some data and functionality. Only when an instance of this template is created, it becomes and actual object, kept in memory during the run-time.