What are access modifiers in Java ?
Answers were Sorted based on User's Feedback
we have 4 access modifiers in java.
public
private
protected
default
| Is This Answer Correct ? | 14 Yes | 5 No |
Answer / ravikiran(aptech mumbai)
Access modifiers species the scope of the access of a
particular variable or method
1).public
2).protected
3).private
4).default
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / surendrareddy
The access specifiers in java are
1.public
2.private
3.protected these are control access specifiers in java
The another one is "Default" it will available when we will
not mention above 3 access specifiers before the class variable
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / madhu
public
static
final
volatile
transient
native
synchronized
| Is This Answer Correct ? | 5 Yes | 11 No |
Explain about java sdk?
What are the different collection views provided by maps?
What is an inner class in java?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
What is the difference between hashset and treeset in java?
What is the use of static import ?
What are the important features of Java 8 release?
How do I compare two strings in word in java?
Integer.parse Int(bf.readLine(System.out.println("enter value for n["+m+"]:"))); can it run under this
Does java return by reference?
How define set in java?
How is the marker interface used in Java?