What are access modifiers in Java ?

Answers were Sorted based on User's Feedback



What are access modifiers in Java ?..

Answer / niranjanravi

we have 4 access modifiers in java.
public
private
protected
default

Is This Answer Correct ?    14 Yes 5 No

What are access modifiers in Java ?..

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

What are access modifiers in Java ?..

Answer / bharathi devi kasi

Public
Private
default
protected

Is This Answer Correct ?    4 Yes 1 No

What are access modifiers in Java ?..

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

What are access modifiers in Java ?..

Answer / uttam lonkar

Public
Private
default
protected

Is This Answer Correct ?    3 Yes 1 No

What are access modifiers in Java ?..

Answer / madhu

public
static
final
volatile
transient
native
synchronized

Is This Answer Correct ?    5 Yes 11 No

Post New Answer

More Core Java Interview Questions

Can we restart a thread already started in java?

0 Answers  


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.

0 Answers  


what is the volatile modifier for? : Java thread

0 Answers  


How is treeset implemented in java?

0 Answers  






How many characters is 2 bytes?

0 Answers  


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.

0 Answers  


How do you override a method?

0 Answers  


What are methods and how are they defined?

0 Answers  


Write a program in java to find the maximum and minimum value node from a circular linked list.

0 Answers  


can any one tell me when do u go for inheritance and polymorphism

3 Answers  


Is there a case when finally will not execute?

0 Answers  


Categories