what is difference betwenn Access Specifier and Access
Modifier ????
Answers were Sorted based on User's Feedback
Answer / praveen111tripathi
Access Specifiers specify the scope of anything(D.M,Member
function ,class)while Access modifiers define that thing's
accessibility in different scops
A.S. in java
1-Public
2-default
3-protected
4-private
A.M. in java
static,final etc.
| Is This Answer Correct ? | 19 Yes | 1 No |
Answer / sudhir dhumal
Access specifiers specify the access level.
There are four access specifiers:
public, private, protected and default
Access modifiers are the keywords used to modify the statement and specify the access level.
There are three access modifiers:
public, private and protected
*Here we don't write default which means we are not modifying the statement so its not a access modifier it just specify the access level
| Is This Answer Correct ? | 1 Yes | 0 No |
What is the catch or declare rule for method declarations?
what are different ways in which a thread can enter the waiting state? : Java thread
Explain about automatic type conversion in java?
What is inner class?what is the use of inner class?where we create the object for inner class? and inner class can extend any class or inner class can implement any interface?
class{ ... ... interface myinterface{ ... ... } abstract class{ .. .. } ... .. .. } is this possible to write "Interface and/ or Abstract class inside a class ? if possible whcich one is possible is only interface? is only abstract?
Which characters are allowed to use as the second character of an identifier, and which characters are not allowed?
Justify your answer that you can't define a method inside another method in java, if you can then how?
Is empty set an element of empty set?
Which class is the immediate superclass of the Container class?
How do you add an element to an arraylist in java?
What is the point of polymorphism java?
What are green threads in java?