A
Q. What is the output for the below code?
public class A{
int add(int i, int j){
return i+j;
}
}
public class B extends A{
public static void main(String argv[]){
short s = 9;
System.out.println(add(s,6));
}
}
- Correct Answer - Option(B)
- Views: 10
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.