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 |
Can we restart a thread already started in java?
what is difference Between Core Java and advance java
60 Answers HCL, HP, Sambalpur University, TCS, Vensai Technologies, Wipro,
Tell us something about set interface.
what is the volatile modifier for? : Java thread
How is treeset implemented in java?
How many characters is 2 bytes?
we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.
How do you override a method?
What are methods and how are they defined?
Write a program in java to find the maximum and minimum value node from a circular linked list.
can any one tell me when do u go for inheritance and polymorphism
Is there a case when finally will not execute?