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:50
Write a 3-4 page apa formatted paper comparing your organization’s it strategy with the best practices outlined in your course text. content should include, but not be limited to: developing and delivering on the it value, developing it strategy for the business value and linking it to business metrics. your paper should include an abstract and a conclusion and a reference page with 3-5 references
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
What are some ways to use a range name in a formula? check all that apply. in the defined names group, click use in formula, and then select the desired name. begin typing the name in the formula, select a name from the autocomplete list, and use the arrow keys and tab key to enter the name in the formula. begin typing the formula, and then click and drag with the mouse to select the cells to include in the formula. right-click one of the cells in the range. click formula options, and use the dialog box to add the name.
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
question
Computers and Technology, 23.06.2019 01:40
You have a linux system that has a 1000gb hard disk drive, which has a 90gb partition containing an ext4 filesystem mounted to the / directory and a 4gb swap partition. currently, this linux system is only used by a few users for storing small files; however, the department manager wants to upgrade this system and use it to run a database application that will be used by 100 users. the database application and the associated data will take up over 200gb of hard disk space. in addition, these 100 users will store their personal files on the hard disk of the system. each user must have a maximum of 5gb of storage space. the department manager has made it very clear that this system must not exhibit any downtime as a result of hard disk errors. how much hard disk space will you require, and what partitions would you need to ensure that the system will perform as needed? where would these partitions be mounted? what quotas would you implement? what commands would you need to run and what entries to /etc/fstab would you need to create? justify your answers.
Answers: 3
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
Physics, 28.03.2021 19:40
question
Social Studies, 28.03.2021 19:50
question
Mathematics, 28.03.2021 19:50
question
Mathematics, 28.03.2021 19:50
Questions on the website: 13722363