0

Is java categories by public or private

4th Jul 2017, 1:53 PM
shwetma gupta
shwetma gupta - avatar
3 Respostas
0
hi, u r asking about access specifier right, if it so we have 4 access specifier private protected public and default
4th Jul 2017, 5:31 PM
Nanda Balakrishnan
0
it is not like in c, that you have a private and a public block, but you can write private, public, or protected in front of variables and methods, like public int x = 5; or private void someFunc (){}
4th Jul 2017, 2:54 PM
Arthur Fibich
Arthur Fibich - avatar
- 1
well, public is the default access specifier
4th Jul 2017, 6:50 PM
Arthur Fibich
Arthur Fibich - avatar