0

I still see that java is complicated!

hey, i'm developing an android app.. but all my work is taken from youtube tutorials... Like i still don't know what the heck is " public static main class" means !!!... please any help or advice is appreciated :)

3rd Oct 2016, 7:06 PM
Ahmad Tarabain
Ahmad Tarabain - avatar
2 Réponses
+ 2
When you run your program, it will look for main. This is the entry point for your program. Simple as that. It is static for reasons of ambiguity and public because the jvm needs access to run it.
3rd Oct 2016, 10:40 PM
Mythos
+ 1
public is just an access modifier which means you can access this method from anywhere. static is a keyword that shows that this method don't need the class object for running. void means that method will not return anything. main is the name of method and inside parentheses String is data type and args is name of data type which you can also change.
18th Oct 2016, 9:38 AM
rahul