INTERVIEW QUESTIONS
J2EE
CORE JAVA
DETAILS
Question: What are Access Specifiers?
Answer: One of the techniques in object-oriented programming is encapsulation. It concerns the hiding of data in a class and making this class available only through methods. Java allows you to control access to classes, methods, and fields via so-called access specifiers..
|
Question:
What are Access Specifiers?
Answer:
One of the techniques in object-oriented programming is encapsulation. It concerns the hiding of data in a class and making this class available only through methods. Java allows you to control access to classes, methods, and fields via so-called access specifiers.. Source: CoolInterview.com
public, protected, private are the access specifiers...
public, protected, private, default are the access levels... Source: CoolInterview.com
Answered by: sureshkumar | Date: 2/25/2010
| Contact sureshkumar
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|