Data Structure Quiz 1

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Keyword ___ requests memory from the system to store an object, then calls the corresponding class's constructor to initialize the object

"NEW"

The combination of data together with its methods is called an ___ data type

ABSTRACT

An ___ is a model of a physical entity or activity

ABSTRACTION

A Java interface is a ___ between the interface designer and the programmer who codes a class that implements the interface

CONTRACT

Method descriptions in an interface are called method

DECLARATIONS

If a class declares constructors, the compiler will not create a ___

DEFAULT CONSTRUCTOR

One way to make code reusable is to ____ or combine data elements together with methods that operate on that data in a separate program module.

ENCAPSULATE

A Java ____ specifies the names, parameters, and return values of the ADT methods without specifying how the methods perform their operations or how the data is internally represented

INTERFACE

Having multiple methods with the same name but different signatures in a class is called ___

METHOD OVERLOADING

It is possible to have several methods with the same name that each operate on different types or numbers of arguments. This feature is called ____

METHOD OVERLOADING

If no constructors are defined for a class, the ___ constructor for that class will be provided by default

NO-PARAMETER

The superclass of all Java classes is an

OBJECT

___ visibility is for members of a class that should not be accessible to anyone but the class, not even classes that extend it

PRIVATE

A data field (or method) with ___ visibility can be accessed in either the class defining it, in any subclass of that class, or any class in the same package

PROTECTED

Classes that are not part of a package may access only ___ members of classes in the package

PUBLIC

The public methods of a class are also known as the class's ___

PUBLIC INTERFACE

___ errors occur during program execution.

RUNTIME

If a method contains a local variable with the same name as one of its class's fields, the local variable ___ the field in that method's scope

SHADOWS

A ___ variable represents class wide information that's shared by all the objects of this class.

STATIC

A ___ class is used to store a primitive-type value in an object type

WRAPPER

The ___ call in a class constructor invokes the superclass's constructor that has the corresponding argument list

super()

The call to ___ invokes the constructor for the current class whose parameter list matches the argument list

this()

Java automatically applies the ___ method to an object referenced in a String expression.

toString()

You should always override the ___ method if you want to represent an object's state.

toString()


संबंधित स्टडी सेट्स

CNC2 Ch 38: Assessment of Digestive and Gastrointestinal Function

View Set

History Unit 1 Assessment Questions

View Set

CCS Exam Prep Health Data Content and Standards

View Set

2019 Ninja PRITE Question Book (Part 1)

View Set