Question: quick java quesition Question 1) Given String[] x = new String[5]; x[0] = Hello': how many objects are created in the above statements? A) 10

quick java quesition

Question 1)

Given

String[] x = new String[5];

x[0] = "Hello':

how many objects are created in the above statements?

A) 10

B) 2

C) 6

D) 5

.

Question 2)

Given

String m = "5";

Object v = 5;

System.out.println(m==v); displays

A) true

B) false

C) An error occurs

.

Question 3)

Given Object[] s = new String[3]; how many reference variables are created in this statement?

A) 4

B) 10

C) 1

D) 5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!