
Java packages

Quiz
•
Computers
•
University
•
Medium

A Vijay Kumar
Used 67+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of this access specifies can be used for a class so that its members can be accessed by a different class in the same package?
Public
Protected
No Modifier
All of the mentioned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these access specifiers can be used for a class so that its members can be accessed by a different class in the different package?
Public
Protected
Private
No Modifier
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an incorrect statement about packages?
Package defines a namespace in which classes are stored
A package can contain other package within it
Java uses file system directories to store packages
A package can be renamed without renaming the directory in which the classes are stored
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For which purpose packages are used in Java?
Categorizes data
Organizing java classes into namespaces
faster compilation
None of These
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A package is a collection of
classes
interfaces
editing tools
classes and interfaces
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a variable is declared as private , then it can be used in _______.
Any class of any package.
Any class of same package.
Only in the same class.
Only subclass in that package.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
which package is imported implicitly?
java.applet
java.util
java.lang
java.io
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Java quiz based on inheritance

Quiz
•
University
15 questions
Java Programming

Quiz
•
University
15 questions
Java

Quiz
•
University
10 questions
Prova Programação Back end

Quiz
•
3rd Grade - University
8 questions
Niveles de Acceso y Funciones Básicas

Quiz
•
University
15 questions
Flutter intro and Dart quiz

Quiz
•
University
11 questions
Review of OOPs Java Quiz1

Quiz
•
University
9 questions
Java Interface Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University