Question: Suppose Integer p = new Integer(5), Integer q = new Integer(6) Q- what is the value of (q.equals(p))? then let q = new Integer(5). Q-

Suppose Integer p = new Integer(5), Integer q = new Integer(6)

Q- what is the value of (q.equals(p))?

then let q = new Integer(5).

Q- what is the value of (q.equals(p))?

then let q = p

Q- what is the value of (q.equals(p))?

then let q = null.

Q- what is the value of (q.equals(p))?

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!