Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java examination questions

807591Apr 4 2008 — edited Jun 5 2008
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 ]
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2008
Added on Apr 4 2008
5 comments
234 views