Computers and Technology

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 ( )

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 22:30, enazer
Type the correct answer in the box. spell all words correctly. what kind of graph or chart does this image represent? the given image represents a (blank).
Answers: 2
image
Computers and Technology, 24.06.2019 00:00, amy7233
Afashion designer wants to increase awareness about her brand. which network can she use and why she can use the blank to blank her products online. answers for the first blank: internet, extranet, or intranet answers for the second blank: market, design, and export
Answers: 1
image
Computers and Technology, 24.06.2019 01:00, summerjoiner
Verify each identity[tex] \frac{csc}{cot \: x \: + \: tan \: x} = cos \: x[/tex]
Answers: 1
image
Computers and Technology, 24.06.2019 23:00, Jennifer312332
Hypertension occurs when blood pressure is too high.
Answers: 1
Do you know the correct answer?
1. which of the following is not the name of a java wrapper class from the java api?

a....

Questions in other subjects: