Question: QUESTION 1 In the following code example, the underlined portion of the statement is what: currentStudent = directory.getStudent ( targetID ) ; An argument A
QUESTION
In the following code example, the underlined portion of the statement is what:
currentStudent directory.getStudenttargetID;
An argument
A return type
An object reference
A method
points
QUESTION
In the following code example, the underlined portion of the statement is what:
bannerDisplay session.getUserByIDIDnumgetFirstNames recent activity:";
A return type
A method call
String concatenation
An argument
points
QUESTION
In the following code example, the underlined portion of the statement is what:
currentStudent directory.getStudenttargetID;
An object reference
A return type
An argument
A method
points
QUESTION
In the following code example, the underlined portion of the statement is what:
currentStudent directory.getStudenttargetID;
A method
An object reference
An argument
A return type
points
QUESTION
What can be said about the following Java statement:
test new SimpleDate;
A method with no return value is being called.
An object is being flagged for garbage collection.
The default constructor method is being called.
Arguments are being passed to a method.
points
QUESTION
The arguments data provided to a method that is called are enclosed in parenthesis that follow the method name.
True
False
points
QUESTION
Objects which do not have at least one object reference pointing to them are marked for garbage collection.
True
False
points
QUESTION
Methods which change the value of an object's instance variables are called accessor methods.
True
False
points
QUESTION
The return value of a method is indicated by either a data type or class type.
True
False
points
QUESTION
Methods that change or modify the instance variables of a class are called mutator methods.
True
False
points
QUESTION
An object reference which has been declared but not yet assigned to an object has the literal value null.
True
False
points
QUESTION
A constructor method is used to assign initial values to the instance variables of a class.
True
False
points
QUESTION
To call the default constructor method for a class, it is necessary to pass a commaseparated list of initial data values called an argument list to assign to the object.
True
False
points
QUESTION
Which of the following select all correct answers show examples of a method call involving an accessor method:
appointment.setTime;
target directory.findStudentID;
newStudent.changeNamePaul Simon";
String temp currentStudent.getName;
points
QUESTION
Which of the following are likely examples of mutator methods? Select all correct answers.
String name currentUser.getFirstName;
target database.lookupuserID;
currentUser.changePasswordoldPassword newPassword, retypedNewPassword;
session.resetSession;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
