public class Profile { private Profile(int w) { // line 1 System.out.println(w); } public final Profile() { // line 5 System.out.println(10); } public static void main(String args[]) { Profile obj = new Profile(50); } }
private Profile(int w) { // line 1
System.out.println(w);
}
public final Profile() { // line 5
System.out.println(10);
public static void main(String args[]) {
Profile obj = new Profile(50);
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.