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 string syntax?

0 Answers  


what is difference between equals and ==?

0 Answers  


What is a compilation unit?

2 Answers  


What are extraneous variables examples?

0 Answers  


how session will be expired?

5 Answers   CybAge, Infosys,






What is the difference between static method and instance method in Java?

0 Answers   SwanSoft Technologies,


What is the use of generics? When was it added to the Java development Kit?

0 Answers   Impetus,


What do you understand by casting in java language?

0 Answers  


How many types of keywords are there?

0 Answers  


Explain about the select method with an example?

0 Answers  


What are static methods?

0 Answers  


What do u mean by wrapper Class? What do u mean by Jvm... How do u change JVM for other OS? Or No need to Change ...? its like tricky

6 Answers   Accenture, EDS,


Categories