what is the Diff. between Access Specifiers and Access
Modifiers?

Answer Posted / santosh kumar(siddhu)

Acess specifer gives some boundry to access.
these r 1)Public(boundry:any where with in package and
outside of package)
2)Private(Boundry:within class scope only)
3)Defult(Boundry:within package scope only)
4)Protected(Boundry:within package scope and
outside subclass of this package class)

Acess modifier change the properties,Behaviour
these are
Public
Abstract
Final
Static
Volatile
Synchronized
Transient
Native

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we create object in copy constructor?

622


Can constructor be inherited?

559


Difference between collection, collection and collections in java?

547


What is the difference between jvm and jre? What is an interface?

524


what is the swingutilities.invokelater(runnable) method for? : Java thread

522






Which sort is best in java?

506


how would you implement a thread pool? : Java thread

484


What is a class in java?

559


Explain the difference between arraylist and linkedlist in java?

464


What is the difference between int and integer in java?

483


Is empty .java file name a valid source file name?

559


Explain about assignment statement?

567


What is a short in java?

481


What is a for loop in java?

567


What is a stringbuilder?

485