char[]h=['H', 'E', 'L', 'L', 'O'];
Write a java statement that will cause a new string object from the character array
Give this one a try later!
char h [] = {'H', 'E', 'L', 'L', 'O'};
String hello = new String (h);
System.out.println(hello);
, myArray[0] - 7
myArray[1] - 9
myArray[2] - (-3)
myArray[3] - 6
myArray[4] - 1
myArray[5] - (-1)
what is the value of myArray[myArray[1]-myArray[0]]
a. 7
b. 9
c. -3
d. 6
Give this one a try later!
b?
A condition that allows a programmer to circumvent the private modifier and change
the private instance variable is called:
a. a copy constructor
b. a privacy leak
c. a class invariant
d. an anonymous object
Give this one a try later!
b. privacy leak
A method that performs some action other than returning a value is called a _____
method.
a. null
b. void