11 questions...in one post often dampen the spirits of a enthusiastic rancher ....too many questions...
I will try answering a few...
1) quote:
--------------------------------------------------------------------------------
The enhanced for loop assumes that, barring an early exit form the loop, you'll always loop through every element of the array.
--------------------------------------------------------------------------------
What this means is that unless you have a break, or continue or exception inside the loop...the loop completes normally...which means it loops through all elements of the collection...
2) object
|
throwable
/ \
Error Exception
Here Object is the Almighty System Object....everything in java is a type of Object...that is why Java is strictly Object oriented...
3)Each method must either handle all checked exceptions by supplying a catch clause or list each unhandled checked exception as a thrown exception
Try not believing it...just code a method with a checked exception...go ahead and complie it...what happens...
The compiler complains..the compiler always checks for the checked exceptions and if you dont handle or declare them...he will keep complaining...so to pacify him you need to do what this statement says...its simply a Java rule.
The Exceptions chapter in K&B give many examples of this..
I will leave the rest of the questions for some one else...
Thanks,
Megha