Well, i was supposed to talk about non-nested or non-inner classes. Well, thanks copeg anyways for pointing this out as well. Now, Any non-nested or non-inner class can have only public or default...
Type: Posts; User: Mr.777
Well, i was supposed to talk about non-nested or non-inner classes. Well, thanks copeg anyways for pointing this out as well. Now, Any non-nested or non-inner class can have only public or default...
Well, both work same except when it comes to the different packages. protected works in different packages only if there is inheritance while default doesn't. And in remaining all cases both work...
Only public, private and protected keywords are access modifiers while there are four different access levels including three keywords and default access level.
There is the difference between access and non-access modifiers. A class can only have public or default access modifier while abstract, final, native etc are non access modifiers. So, yes a class...
Class can only be public or default.
And instance methods can be abstract and protected though. But you must need to implement this protected method in the very next concrete class(non abstract) or...