What are the different access modifiers available in java?
Answer / Ayushi Srivastava
The different access modifiers available in Java are:
1. public: accessible from any class, package or outside the package
2. protected: accessible within its own package and subclasses of other packages
3. (no modifier): accessible only within the same class
4. private: accessible only within the same class
| Is This Answer Correct ? | 0 Yes | 0 No |
Which is bigger float or double?
Explain different states of a thread in java?
can we access the method of class without creating the object of the class
List implementations of list interface?
What initialize variables?
Can arraylist contain null values?
What is the default size of arraylist in java?
Why java is considered as platform independent?
What are abstract methods in java?
why we write public static void main (String args[]) in core java plz explain briefly??????????????????
How many bits are allocated to represent character of character sets - Unicode, ASCII, UTF-16, UTF-8?
What function extracts specified characters from a string?