-
Exception
When super class method throws exception then subclass also throws the same Exception, which will compile?
-
What is the difference between inheritance and extends?
I have not mistaken extends for polymorphism or encapsulation or anything else.. my question is correct!!!
-
toString function
What is the default value for toString() in java? Explain me with an example?
-
Exception Handling
What is the output of the following program, When tested under JDK 5.0class ExceptionDemo{ public static void main(String[] args) { int a[] = new int[] {1,2,3,4,5}; try{ System.out.prinltln(a[6]); } catch(Exception e) { System.out.println("Catching Exception ..."); } catch(ArrayIndexOutofBoundsException ae) { System.out.println("Catching ArrayIndexOutOfBounds...
-
-
JVM is platform independent/dependent? why?
which one is faster in execution Array List or Array? why?
-