Hello everyone!! I have got a very basic doubts. 1. what is the difference between public and default modifiers. 2. what are access specifiers.Access modifiers are: public,private,default,protected,abstract,final,static,synchronize,transient and native. But what are access specifiers.Are both(modifiers and specifiers) same?
Hi ml, public access - class can be accessed by any other class. default access - class can be accessed/used only inside the package in which it is defined
Now public,private,default,protected,abstract,final,static,synchronize,transient and native .... all these metioned by u are called modifiers. but out of these only public/protected/private are known as access modifiers/access specifiers.rest are simply modifiers. regards Deekasha