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 Abstract DataType?

1 Answers  


Why do we override tostring method in java?

0 Answers  


In what circumstances, compiler will supply a default constructor for a class?

4 Answers  


What is a parameter in java?

0 Answers  


How many bytes are a float?

0 Answers  






What best practices should you follow while writing multithreaded code in java?

0 Answers  


How can we achieve IPC in JAVA?

1 Answers   Wipro,


How multipleInheritance is possible in java?

18 Answers   Satyam,


What are the 8 data types in java?

0 Answers  


If set accepts only one argument then how can it compare two objects to avoid duplicates

5 Answers  


Where are the card layouts used?

0 Answers  


Is overriding possible in java?

0 Answers  


Categories