what is difference betwenn Access Specifier and Access
Modifier ????

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is high level language in computer?

530


What is a method type?

526


Can there be an abstract method without an abstract class?

531


What is string immutability?

533


How do you clear an arraylist in java?

489






Write a program to print 15 random numbers using foreach of java 8?

539


Can I learn java without any programming experience?

547


What is the difference between public, private, protected, and friend access?

568


Why java is secure? Explain.

583


What is serialization in java?

555


Explain the difference between hashmap and hashtable in java?

486


What is hash table in java?

489


What lambda means?

535


can I implement my own start() method? : Java thread

546


What is an iterator java?

525