(Choose 1 answer)
A. Compilation and output the string "Hello"
B. Compilation and output the string "ello"
C. Compile time error
D. Compilation and output the string elloH
What will be the result when you attempt to compile and run the following code?.
public class Conv{
public static void main(String argv[]){
Conv c=new Conv();String s=new String("ello");
c.amethod(s);
}
public void amethod(String s){
char c='H';
c+=s;System.out.println(c);
}