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's diff between struts 1.1 & 1.2

3 Answers   Wipro,


take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

0 Answers  


How does enum work in java?

0 Answers  


Is it possible to use Semaphore/ Mutex in an Interrupt Handler?

0 Answers   Ciena,


'A class is a template for an object' explain this statement.

0 Answers   Akamai Technologies,






Explain cookies?

2 Answers   Canon,


What access modifiers can be used for class ?

0 Answers  


Explain the scope of a variable.

0 Answers   TCS,


Can we convert integer to string in java?

0 Answers  


Are arrays immutable in java?

0 Answers  


What is the purpose of default constructor?

0 Answers  


What is the original name of java?

0 Answers  


Categories