A
Q. What is the expected output?
public class Profile {
private Profile(int w) { // line 1
System.out.print(w);
}
public final Profile() { // line 5
System.out.print(10);
}
public static void main(String args[]) {
Profile obj = new Profile(50);
}
}
- Correct Answer - Option(B)
- Views: 29
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.