What are Access Specifiers and Access Modifiers.

Answers were Sorted based on User's Feedback



What are Access Specifiers and Access Modifiers...

Answer / ravikiran(aptech mumbai)

access specifies will specify the scope of the member access.
public
protected
private
default

access modifier will support the functionality of a method
abstract
final
native
synchronized
static

Is This Answer Correct ?    47 Yes 7 No

What are Access Specifiers and Access Modifiers...

Answer / j.maharajan

Access Specifiers are public,private,protected and default.

Access Modifiers are
static,final,volatile,synchronized,transient,native.abstract.

Is This Answer Correct ?    45 Yes 10 No

What are Access Specifiers and Access Modifiers...

Answer / nisreen

Access specifiers are public,private,protected and default
static.

Is This Answer Correct ?    34 Yes 14 No

What are Access Specifiers and Access Modifiers...

Answer / praveen pandey

Access specifiers are used to grant permissio to access
datamembers,property of classes and methods from others.
Public,private,protected,protected Internal,default.

But modifiers are useing support the functionality of a
method.
static,final,synchronized,abstract.

Is This Answer Correct ?    8 Yes 4 No

What are Access Specifiers and Access Modifiers...

Answer / emmanuel opoku

Access specifier determines whether unrelated and derived
classes can access the inherited public and protected
members of the base.

Is This Answer Correct ?    2 Yes 1 No

What are Access Specifiers and Access Modifiers...

Answer / taji

The access-specifier determines the access to the names that follow it, up to the next access-specifier or the end of the class declaration
i.e public, protected and private.

Is This Answer Correct ?    6 Yes 6 No

Post New Answer

More Core Java Interview Questions

how does the run() method in runnable work? : Java thread

0 Answers  


What environment variables are required to be set on a machine in order to run Java programs?

0 Answers   Tech Mahindra,


Can we override tostring method in java?

0 Answers  


how to make hashmap object as synchronized object?

2 Answers   BOB Technologies,


How do you escape in java?

0 Answers  


I don’t want my class to be inherited by any other class. What should I do?

0 Answers  


What is illegal identifier in java?

0 Answers  


Can we overload the methods by making them static?

0 Answers  


What is multi-catch block in java?

0 Answers  


can we write two same methods in outer class and innerclass.

1 Answers   3i Infotech,


What is finalize() function in java?

0 Answers  


What are the differences between stringbuffer and stringbuilder?

0 Answers  


Categories