V
Q. What will be the result after compiling this code? class SuperClass{ public int doIt(String str, Integer... data)throws Exception{ String signature = "(String, Integer[])"; System.out.println(str + " " + signature); return 1; } } public class Test extends SuperClass{ public int doIt(String str, Integer... data){ String signature = "(String, Integer[])"; System.out.println("Overridden: " + str + " " +signature); return 0; } public static void main(String... args){ SuperClass sb = new Test(); sb.doIt("hello", 3); } }
Exception must be caught or declared to be thrown.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. In Java byte, short, int and long all of these are
Q. What is the purpose of the Arrays.fill() method in Java?
Q. Which object stores references to the request and response objects?
Q. What is the output of Java Enhanced FOR loop below?
Q. File extension of a view state’s name which is by default loaded by facelet page.
Discusssion
Login to discuss.