0

what is the default access specifier in Java?.

14th Aug 2016, 6:26 AM
Gowtham krvz kv
Gowtham krvz kv - avatar
5 Antworten
+ 1
public before main is necessary it is d part of syntax for main function which tells...it can be accessed publicly..... where as default specifier public is for other user defined functions like void hello() works....without writing public before it
14th Aug 2016, 8:01 AM
Amandeep Singh
Amandeep Singh - avatar
0
public
14th Aug 2016, 7:52 AM
Amandeep Singh
Amandeep Singh - avatar
0
then is it not necessary to declare public static void main.?
14th Aug 2016, 7:55 AM
Gowtham krvz kv
Gowtham krvz kv - avatar
0
thanks Aman.. your words helped me really to understand it crystal clear. And thanks again
14th Aug 2016, 8:03 AM
Gowtham krvz kv
Gowtham krvz kv - avatar
0
welcome brother..... i am happy to help you
14th Aug 2016, 8:05 AM
Amandeep Singh
Amandeep Singh - avatar