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 |
What is the difference between the synchronized() & static synchronized()?
what is the difference b/w static and final methods?
What is a serializable interface?
Is arraylist zero based?
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
How to sort an array from smallest to largest java?
What is complexity and its types?
What does the @override annotation do?
What are different types of multitasking?
What is the immediate parent class of the Applet class?
What is double checked locking in singleton?
Is ResultSet class?
5 Answers Bally Technologies, TCS,