Question: check my answears please: In Java an array can only store one type of data. TRUE 2 . An array index cannot be a float,
check my answears please:
In Java an array can only store one type of data. TRUE
An array index cannot be a float, double, boolean, or String. TRUE
A Java main method uses the parameter String variable so that a user can run the program and supply commandline parameters. Since the parameter is a String array, however, the user does not have to supply any parameters. TRUE
Interface classes cannot be extended but classes that implement interfaces can be extended. FALSE
A derived class has access to all of the methods of the parent class, but only to the protected or public instance data of the parent class. FALSE
Consider the following class hierarchy:
A is a derived class of X FALSE
Y is a derived class of Z FALSE
If A B Y and Z all contain the same instance data d then d should be declared in X and inherited into Y Z A and B TRUE
The reserved word, extends, is used to denote a hasa relationship. FALSE
You may use the super reserved word to access a parent class's private members. FALSE
Java doesn't support multiple inheritance; but it does support the implementation of multiple interfaces. TRUE
To swap the rd and th elements in the int array values, you would do: FALSE
values values;
values values;
A polymorphic reference can refer to different types of objects over time. TRUE
Java allows one to create polymorphic references using inheritance and using interfaces TRUE
A reference variable can refer to any object created from any class related to it by inheritance. TRUE
The fact that the System.out.println method is able to handle such a wide variety of objects, and print them correctly, is an example of the polymorphic nature of the println method. TRUE
An interface reference can refer to any object of any class that implements the interface. TRUE
An class reference can refer to any object of any class that descends from the class. TRUE
A method's parameter can be polymorphic, giving the method flexible control of its arguments. TRUE
One of the advantages of the linear search is that it does not require its data to be sorted. TRUE
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
