Question: Given the following method definition. What will happen if you call the method with concatenate ( Hello , 5 ) ;
Given the following method definition. What will happen if you call the method with concatenateHello;
public String concatenateString a String b
A It will concatenate "Hello" and
B It will concatenate "Hello" and
C It will cause an error.
D It will implicitly convert to a string and concatenate.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
