What are access modifiers in Java ?
Answers were Sorted based on User's Feedback
we have 4 access modifiers in java.
public
private
protected
default
Is This Answer Correct ? | 14 Yes | 5 No |
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 |
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 |
Answer / madhu
public
static
final
volatile
transient
native
synchronized
Is This Answer Correct ? | 5 Yes | 11 No |
What is audio clip interface? Name few methods of it ?
Why do we use regex?
What is Recursion Function?
when we create singleton design then we create private constructtor..so how JVM take private constructor to make object..but it's private..
Can we sort array in java?
Explain method local inner classes ?
Why do we need strings in java?
How many objects are created for a singleton class
How do you escape json?
What is the difference between compiler and jvm?
What is the difference between overloading and overriding a function?
13 Answers eG Innovations, Infosys, TCS,
Can we use a switch statement with strings?