Chapter 3 T/F Review - Computer Programming

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

"Shadowing" is the term used to describe how the field name is hidden by the name of a local or parameter variable.

True

A constructor is a method that is automatically called when an object is created.

True

An access specifier indicates how a class may be accessed.

True

The term "default constructor" is applied to the first constructor written by the author of the class.

False

The public access specifier for a field indicates that the field may not be accessed by statements outside the class.

False

A method that gets a value from a class's field but does not change it is known as a mutator method.

False

When a local variable in an instance method has the same name as an instance field, the instance field hides the local variable.

False

A method that stores a value in a class's field or in some other way changes the value of a field is known as a mutator method.

True

The java.lang package is automatically imported into all Java programs.

True

The term "no-arg constructor" is applied to any constructor that does not accept arguments.

True


Kaugnay na mga set ng pag-aaral

CH. 3 Section 3.3 Phase Changes Study Guide

View Set

ATI- Nursing Care of Children Practice/Focus Areas

View Set

Chapter 3 & 4 - Type of Account, Normal Balance, Financial Statement

View Set

Lecture 12 - Chapter 8. Bacterial Genetics

View Set

3MA114 - Management pro informatiky a statistiky

View Set