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;
|
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started