Here is another one,
public class test{
private test(Object o) {
System.out.println("Noob");
}
private test(double[] dArray) {
System.out.println("Java Programmer");
}
public static void main(String[] args) {
System.out.print("I am a ");
new test(null);
}
}
Before you attempt to compile and run it, just guess what should be the output.....
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|