Interview Questions on C C++

Home  |  About Us  |  Contact
View Questions Contribute Training Misc..

You are here : Home » Java » Java Interview Questions on Modifiers

Java Interview Questions on Modfiers - 3 Questions


Question: 1

(A) It CAN be accessed from ANYWHERE
(B) It CAN ONLY be accessed from ’same package’
(C) It can be accessed from the same file
(D) It can be access from the same project

[Posted by: Admin | Location: Chicago, USA]



Question: 2

(A) Private members can be accessed within a same package
(B) Private members can be accessed within class only
(C) Private members can be accessed within sub classes of same package
(D) All of the above

[Posted by: Admin | Location: Chicago, USA]



Question: 3

(A) It is visible to same project
(B) It is visible to same package
(C) It is visible to same file
(D) All of these

[Posted by: Admin | Location: Chicago, USA]


[Contribute to this Website]


Java Objective Questions By Different Categories:-
Datatype | Variables | Operators | Decision Making | Loops | Methods | Reference Variables | Arrays | Classes and Objects | Abstract Class | Singleton Class | Modifiers | Inheritance | Overriding | Polymorphism | Abstraction | Encapsulation | Files and I/O | TypeCasting | Packages | Exceptions | Collections Framework | Numbers Class | Date & Time | Regular Expressions | Data Structures | Interfaces | Serialization | Multithreading | Networking | Sending Email | Applet Basics | Other