Answer the following questions true (T) or false (F)

1. Java supports operator overloading.

2. Only the default constructor has the this parameter.


1. False
2. False

Computer Science & Information Technology

You might also like to view...

Which is the correct way to tell the compiler that the class being declared (ChildClass) is derived from the base class (BaseClass)?

a. class ChildClass::public BaseClass b. class ChildClass:public BaseClass c. class ChildClass childOf public BaseClass d. class ChildClass derived BaseClass

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1 Specifying the order in which statements (actions) execute in an app is called program control. 2 The unary cast operator (double) creates a temporary integer copy of its operand. 3 Instance variables of type bool are given the value true by default. 4 Pseudocode helps you think out an app before attempting to write it in a programming language.

Computer Science & Information Technology

(Bank Account Information Application) Create an application that allows a user to input a deposit amount (Fig. 4.15). Each time the user clicks the Enter JButton, the applica- tion adds the deposit amount entered by the user in the Deposit amount: JTextField to the balance that is currently displayed in the Balance: JTextField, then displays the new result in the Balance: JTextField. [Note: This application displays Sue Purple as a default client name and 12345 as a default account number.]


a) Copying the template to your working directory. Copy the C:Examples Tutorial04ExercisesAccountInformation directory to your C:SimplyJava directory.
b) Opening the Command Prompt window and changing directories. Open the Com- mand Prompt window by selecting Start > Programs > Accessories > Command Prompt. Change to your working directory by typing cd C:SimplyJava AccountInformation.
c) Compiling the template application. Compile your application by typing javac
AccountInformation.java.
d) Running the template application. Run the Bank Account Information template application by typing java AccountInformation. Type 100 in the Deposit amount: JTextField. When you press the Enter JButton, notice that the deposit amount is not added to the balance because you have not added code to the Enter JButton’s event handler yet.
e) Opening the template file. Open the AccountInformation.java file in your text editor.
f) Inserting code in the event handler. I

Computer Science & Information Technology

Indexes are created and used to decrease performance

Indicate whether the statement is true or false

Computer Science & Information Technology