Originally posted by Simeon Cherniy:
Of cource, we can't be sure of completion of finally block . But the finally block will be executing until it is not finished. If finally block throw exception than on the top of stack trace we will have this exception
Originally posted by Matt Caripto:
Hi all,
bringing the total closer to GBP �175, or roughly US$335. I'm also a
Originally posted by Aniket Patil:
Removing the private modifier for print method in class A and compiling it again does not thrown any compile-time error. The program works fine.
Originally posted by Aniket Patil:
According to JLS, it is possible for a method to have a declared return type and yet contain no return statements.
Example:
class DizzyDean {
int pitch() { throw new RuntimeException("90 mph?!"); }
}
Why does this not work?
class ConstantAccess
{
int method()
{
System.out.println("Inside method()");
}
}
Originally posted by Aniket Patil:
Originally posted by Firman Drage:
xxxis and instance of class B - and class B has also a method called print...
Originally posted by Amitabha Batranab:
So are you going to tell us why?
Originally posted by Suhas Wadadekar:
i think both options in bold are valid...but there is no mention of it in the book
Originally posted by Amitabha Batranab:
ArrayList<Rectangle> c=(ArrayList<Rectangle> b;
here we are assigning an unsafe list to a safe list but we are typecasting it to a safe list first.