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 |
Program to print 1 1 2 1 2 3 1 2 3 4 like that
In Serialization, whether you will use Static variables?
How to reduce flicking in animation?
Why chararray() is preferred over string to store the password?
What do you mean by thread safe?
What is function overriding and overloading in java?
How do you compare arrays in java?
WHAT IS JDK,JVM,CLASS DEFINE ALL?
What is meant by tab pans?
What are the differences between unchecked exception, checked exception, and errors?
why we cannot declare static variable inside a static method
How to transfer data from an Applet to Servlet ?