Which of the following statements is false?

a) In any class that does not explicitly declare a constructor, the compiler provides a
public default constructor (which always has no parameters).
b) When a class has only the default constructor, the class’s instance variables are
initialized to their default values: 0 for numeric simple types, false for simple type bool
and null for all other types.
c) If you declare one or more constructors for a class, the compiler will not create a
default constructor for that class.
d) If the compiler does not create a default constructor for an Account class, you will not be able to create an Account object with the expression new Account().


d) If the compiler does not create a default constructor for an Account class, you will not be able to create an Account object with the expression new Account().

Computer Science & Information Technology

You might also like to view...

To ____________ a variable means to increase its value by 1.

a. append b. decrement c. add d. increment

Computer Science & Information Technology

An execution error is also known as a ____ error.

A. compilation B. logic C. syntax D. run-time

Computer Science & Information Technology

Create and modify relationships using controls found on the ____ tab.

A. HOME B. DATABASE TOOLS C. EXTERNAL DATA D. RELATIONSHIP TOOLS DESIGN

Computer Science & Information Technology

Sandra is creating a flyer for her boss in Word. She is saving the file with a name that contains a question mark (?). What will be the outcome if Sandra tries to save the file on a Windows PC?

A) Sandra's file will save successfully using the question mark. B) Sandra's file will be deleted. C) Sandra's file name will not be saved because the question mark is not permitted. D) Sandra's file will be compressed to save storage space on the hard drive.

Computer Science & Information Technology