Java packages

Java packages

University

10 Qs

quiz-placeholder

Similar activities

Kuis OOAD Pertemuan 4

Kuis OOAD Pertemuan 4

University

10 Qs

HTML Postest

HTML Postest

University

11 Qs

Object Oriented Programming Assessment 1

Object Oriented Programming Assessment 1

University

15 Qs

Chapter 1

Chapter 1

University

10 Qs

 QUIZ  MS Core Java Quiz-3 2023

QUIZ MS Core Java Quiz-3 2023

University

11 Qs

QUIZ 7 PBO

QUIZ 7 PBO

University

10 Qs

ICT Assesment

ICT Assesment

10th Grade - University

15 Qs

Java Programming-1

Java Programming-1

University

10 Qs

Java packages

Java packages

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

A Vijay Kumar

Used 67+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers