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

What is integer valueof?

0 Answers  


why the wait,notify,notifyall methods are placed in object class?these are the thread concepts why these methods are placed in Object class?

2 Answers   Global Logic, Satyam,


What are methods of a class?

0 Answers  


What is a method signature java?

0 Answers  


What is the maximum length of a url?

0 Answers  






What is lazy activation?

2 Answers   CMC,


What is the difference between panel and frame ?

7 Answers   HCL, IBM, Raim Techno Solutions,


What does those terms actually mean included in the j.d.k i.6?

0 Answers  


Can constructor be static or final?

0 Answers  


what is the difference b/w static and final methods?

1 Answers  


we r taking <load-on-startup>0</load-on-startup> <load-on-startup>1</load-on-startup> in deployment descripter for loading servlets like serv1 N serv2? so 'll it take serv1 or serv2

2 Answers   CSC,


Which list is sorted in java?

0 Answers  


Categories