Hi! man. I think that you really know that programming is not just another module you have to crem and pass, you must understand the concept(know what your doing). You can answer Q2 by only studying chapter 4(trust me!).
Try geeting your hands on the Schaum's outline series on Java. There are plenty of worked out examples that will be of assistance. These exapmles can be downloaded from the net which should save finger trouble.