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

If a variable is declared as private, where may the variable be accessed?

0 Answers  


What is an Applet ?

2 Answers  


Explain illegalmonitorstateexception and when it will be thrown?

0 Answers  


What does || mean in vectors?

0 Answers  


In a container there are 5 components. I want to display all the component names, how will you do that?

0 Answers  






What must a class do to implement an interface in java programming?

0 Answers  


What exactly is methodology?

0 Answers  


Explain in detail about encapsulation with an example?

4 Answers  


What is the difference between declaration and definition in java?

0 Answers  


Is integer passed by reference in java?

0 Answers  


Tell some latest versions in JAVA related areas?

0 Answers  


what is an object and how do you allocate memory to it?

6 Answers   Anshinsoft, Wipro,


Categories