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

Level: Beginner Category of MCQ: modifiers



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

Level: Practitioner Category of MCQ: modifiers



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

Level: Beginner Category of MCQ: modifiers



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