Search Header Logo

Wipro PRP - 15th June

Authored by Kavitha Murugan

Computers

University

Used 5+ times

Wipro PRP - 15th June
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?