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, 21.06.2019 18:20
Geneva’s manager would like to see some additional information to make sales decisions.enter a formula in cell j4 using the if function to it whether or not the item beaded earrings should go on sale. it will go on sale if its current sales rank (in cell g4) is 8th or lower. (hint: if the cell value is greater than or equal to 8, it will go on sale.)if this condition is true, the item will go on sale. (hint: the if_true value should be β€œyes”.)if this condition is false, the item doesn’t need to go on sale. (hint: the if_false value should be β€œ-”.)copy the formula created in cell j4 to the range j5: j14
Answers: 2
question
Computers and Technology, 21.06.2019 22:30
The blank is type of decision-maker who over analyzes information
Answers: 3
question
Computers and Technology, 23.06.2019 06:00
Respond to the following in three to five sentences. select the workplace skill, habit, or attitude described in this chapter that you believe is most important for being a successful employee.
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Which best compares appointments and events in outlook 2010appointments have a subject man, and events do notappointments have a specific date or range of dates, and events do notappointments have a start and end time of day, and events do notappointments have a location option, and events do not
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
Mathematics, 24.04.2021 03:10
question
Mathematics, 24.04.2021 03:10
question
Mathematics, 24.04.2021 03:10
question
Advanced Placement (AP), 24.04.2021 03:10
Questions on the website: 13722363