I am preparing for my end of year exams. I have been given some practice papers to revise from. I wanted to post some questions to see what sort of answers the java community would come up with, cos thats the best source to gain perfect answers. Feel free to contribute. Your work wont be copied for anything, its just a basis for me to revise from. I will see how things go for the first question:
Question 1
a)
Compare and contrast the application of Inheritance and Composition in Object Oriented
programming; illustrate your answer using the GUI classes provided by the Java �swing�
and/or �awt� packages.
[ 10 marks ]
b)
Explain the concept of an �object� and outline the techniques that may be employed to
ensure data integrity of object properties is maintained.
[ 8 marks ]
c)
Discuss the stages of the Java event handling process for GUI objects. Illustrate your
answer by describing the sequence of actions when the user presses a JButton, to
calculate age from the users date of birth.
[ 7 marks ]