subject

1. which of the following is not the name of a java wrapper class from the java api?

a. byte
b. int
c. long
d. boolean

2. which of the following statements will cause a compiler error?

a. integer i = new integer ( ) ;
b. integer j = new integer ("5") ;
c. integer k = integer. valueof ("5");
d. int m = integer. pareseint ("5");

3. if variables j and k refer to objects of type double and j . compareto (k) returns a value of 1, which of the following is true?

a. the double value held in j is less than the value held inside k.
b. the difference between values held in j and k is 1.
c. the double values held inside j and k are both positive.
d. the double value held inside j is greater than the value held inside k.

4. what is a radix as used in the method parseint (string s, int radix) from the integer class?

a. a numeric base 2 such as for binary or 16 for hexadecimal.
b. the number of characters in the string that represent integers.
c. the unicode character code to be used when parsing the string.
d. the number of times the string should be repeated before being converted to an int.

5. which of the following is a static method of the integer class?

a. intvalue ( )
b. parseint ( )
c. tostring ( )
d. compareto ( )

6. which of the following statements will cause a compiler error?

a. double a = new double (10.6) + 3;
b. integer b = 0;
c. double c = 0;
d. int d = new integer (7) ;

7. which of the following is not an example of autoboxing?

a. boolean a = false
b. integer b = new integer (9);
c. double x = 3.0;
double c = x;
d. character d = ‘2’;

8. what is the result of the following code fragment?

biginteger a = new biginteger (“10”);
biginteger b = new biginteger (“25”);
a . multiply (b);
a . add (b);
system. out. println (a);

a. 10
b. 35
c. 250
d. 275

9. what is the name of the biginteger method that will calculate the remainder of division by another biginteger?

a. modulo ( )
b. modulus ( )
c. divisor ( )
d. remainder ( )

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
Aconstruction company is creating a powerpoint presentation describing how they calculate costs during each construction step. they plan to email this presentation to clients. the individual clients will be watching the presentation slide show on their own personal computers. what is the most important formatting step the company should take to make the text readable and pleasing to the eye?
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Which analyst position analyzes information using mathematical models to business managers make decisions?
Answers: 1
question
Computers and Technology, 23.06.2019 22:50
An environmental protection agency study of 12 automobiles revealed a correlation of 0.47 between engine size and emissions. at 0.01 significance level, can we conclude that there is a positive association between the variables? what is the p value? interpret.
Answers: 2
You know the right answer?
1. which of the following is not the name of a java wrapper class from the java api?

a....
Questions
question
Biology, 28.07.2019 16:00
question
Mathematics, 28.07.2019 16:00
Questions on the website: 13722360