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 20:30
Write a program that reads the file, then displays the average number of steps taken for each month. (the data is from a year that was not a leap year, so february has 28 days.) your program needs to use at least 3 functions not counting main and display the information in a neat well formatted fashion.
Answers: 3
question
Computers and Technology, 23.06.2019 15:00
In the blank libreoffice writer document, to start the process of entering a date field into a letter, click on the insert menu. edit menu. file menu. fields menu.
Answers: 3
question
Computers and Technology, 23.06.2019 21:20
For positive constants a and b, the force between two atoms in a molecule is given f(r) = βˆ’a r2 + b r3 , where r > 0 is the distance between the atoms. note: a and b are upper case letters. (a) find f '(r) = (b) find the critical point for f(r). r = (c) find f ''(r) = (d) find the value of r so that f ''(r) = 0.
Answers: 1
question
Computers and Technology, 24.06.2019 02:20
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
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
Chemistry, 09.11.2021 14:00
question
Physics, 09.11.2021 14:00
Questions on the website: 13722361