Computer Applications
Post Office is an example for …………… access specifier.
- public
- local
- protected
- private
Encapsulation & Inheritance in Java
8 Likes
Answer
public
Reason — A Post Office is accessible to everyone in a community, just like a public access specifier in programming, which allows members of a class to be accessible from any other class or part of the program. Hence, a Post Office is an example of public access specifier.
Answered By
4 Likes
Related Questions
The output of
Math.max(-7, Math.min(-5, -4))is:- -5
- -4
- -7
- error
Which of the following is true for the given object creation statement?
Game cricket = new Game();- Game is an object of cricket class
- New keyword creates object Game
- Game is a class and cricket is an object
- Game and cricket are objects
Assertion (A): In switch case, break statement avoids fall through.
Reason (R): break statement helps to execute only one case at a time.
- Both (A) and (R) are true and (R) is a correct explanation of (A).
- Both (A) and (R) are true and (R) is not a correct explanation of (A).
- (A) is true and (R) is false.
- (A) is false and (R) is true.
A physical education teacher asks the students to do the side stretch as shown below, 10 times. Which programming construct the teacher uses?

- if
- switch
- for
- if else if