Wipro PRP - 15th June

Wipro PRP - 15th June

University

13 Qs

quiz-placeholder

Similar activities

Jison (Español)

Jison (Español)

University

12 Qs

Costruttori

Costruttori

University

9 Qs

File Write and Read

File Write and Read

University

16 Qs

eclipse

eclipse

University

10 Qs

Quiz 6 PBO

Quiz 6 PBO

University

10 Qs

Examen Unidad VI. Archivos

Examen Unidad VI. Archivos

University

10 Qs

P1_APLab2Quiz_B3B4

P1_APLab2Quiz_B3B4

University

10 Qs

Wipro PRP - 15th June

Wipro PRP - 15th June

Assessment

Quiz

Computers

University

Hard

Created by

Kavitha Murugan

Used 5+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which does autoboxing or unboxing in Java?

Compiler

Runtime

Third party tools

JDK

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which system property stores installation directory of JRE?

user.home

java.class.path

java.home

user.dir

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Java version introduced the feature Autoboxing and Unboxing?

Java 4

Java 5

Java 6

Java 7

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the need for Autoboxing and Unboxing in Java?

Reduces code to be written by developers to convert from Wrapper to Primitive vice versa

Compile time is reduced due to fixed methods followed to automatically convert Objects and Primitives

Auto-unboxing improves memory efficiency by converting Wrapper to Primitive and process when object version is not needed

All the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the right statement which does autoboxing in Java?

Integer temperature1 = 100;
int temperature2 = 101;
Integer temperature1 = 100;
int temperature2 = 101;
Double temperature1 = 100;
int temperature2 = 101;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the below java code with autoboxing?

public class AutoBoxingTest2
{
  static void show(int reading)
  {
    System.out.println("Reading: " + reading);
  }
  public static void main(String[] args)
  {
    Integer a = Integer.valueOf(10);
    show(a);
  }
}

Reading: 0

Reading: 10

Compiler error

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the components of a marker interface?

Fields and methods

No fields, only methods

Fields, no methods

No fields, No methods

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?