Question: 2 pts DQuestion 1 Suppose we have a String reference variable called nane and we want to test whether the reference is null. Complete the







2 pts DQuestion 1 Suppose we have a String reference variable called nane and we want to test whether the reference is null. Complete the conditional: if System.out.println("The name is null"); 2 pts Question 2 Suppose we have a String reference variable called name and we know it is not null. We want to test whether the name object is equal to the String "abc" or not Complete the conditional if (name System.out.println("The name is abc")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
