Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » Java » Java Interview Questions on Modifiers

Java Interview Questions on Modfiers - 3


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

Beginner modifiers[Posted by: Admin | 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

Practitioner modifiers[Posted by: Admin | 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

Beginner modifiers[Posted by: Admin | Chicago, USA]



Browse Java 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 Multithreading Other