What are Access Specifiers and Access Modifiers.
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / nisreen
Access specifiers are public,private,protected and default
static.
| Is This Answer Correct ? | 34 Yes | 14 No |
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 |
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 |
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 |
84. try { 85. ResourceConnection con = resourceFactory.getConnection(); 86. Results r = con.query(”GET INFO FROM CUSTOMER”); 87. info = r.getData(); 88. con.close(); 89. } catch (ResourceException re) { 90. errorLog.write(re.getMessage()); 91. } 92. return info; Which is true if a ResourceException is thrown on line 86? 1 Line 92 will not execute. 2 The connection will not be retrieved in line 85. 3 The resource connection will not be closed on line 88. 4 The enclosing method will throw an exception to its caller.
Which package has light weight components in java programming?
What is the use of flag?
How java is similar to c?
What’s the difference between the methods sleep() and wait()?
What is passing parameters in java?
How do you find the independent variable?
What is update method called?
What is the difference between static class and normal class?
use of wrapper classes?
How many arguments can be passed to main ()?
whether java is fully object oriented language or partially object oriented language