Answer Posted / anjani kumar jha
There are four access specifiers are available in java
Public-----------access to all
Private---------limited to class only
Protected---------limited to sub package of class
Default------------limited to same package
| Is This Answer Correct ? | 52 Yes | 10 No |
Post New Answer View All Answers
How many arguments can a method have java?
What do you mean by access modifier?
Can you access non static variable in static context?
Why hashmap is used in java?
Does set allows null in java?
What is a void in java?
What is the difference between a window and a frame in java programming?
What is the difference between stringbuffer and stringbuilder class?
How variables are stored in memory?
What is the use of java?
How do you implement singleton class?
What are the fileinputstream and fileoutputstream?
What is a double vs float?
What is difference between array and arraylist in java?
What is the base class for error and exception?