Question: 1?Which statement converts value in double variable x to a String variable str? str = x.toString(); str = x; str = Double.toString(x); str = String.double(x);

1?Which statement converts value in double variable x to a String variable str?

str = x.toString();

str = x;

str = Double.toString(x);

str = String.double(x);

2?Which statement converts String variable str containing integer value to int variable n?

n = str;

n = Integer.parseInt(str);

n = new Integer(str);

n = str.toInt();

3?Which statement is incorrect, provided: Integer n; int m;

n = m;

m = 77;

n = new Integer ();

m = n;

4?Which statement returns true?

Character.isWhitespace('a')

Character.isLetter('a')

Character.toUpperCase('a')

Character.isUpperCase('a')

5?An interface may have (only one answer):

method definitions

instance variables

method headings

constructors

6?The scanner class has a series of methods that checks to see if there is any more well-formed input of the appropriate type. These methods are called _______ methods

hasNext

nextToken

getNext

testNext

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!