SPE 2207 Advanced Object-Oriented Programming Year II Semester II
SPE 2207 Advanced Object-Oriented Programming Year II Semester II
Page 1 of 3
Page 1 of 5
c. Using examples explain what method overloading is and explain how it differs from
method overriding. (4 marks)
d. Using a Java code example illustrates three situations in which abstract classes are
commonly used. (6 marks)
Page 2 of 3
Page 2 of 5
QUESTION FOUR (20 MARKS)
a. Explain two role of condition variables when writing a class that manages a shareable
resource. (4 marks)
b. Explain three reasons why the use of static and instance variables in a class definition
becomes complex when writing methods that support concurrent access for threads.
(6 marks)
c. With reference to message passing concurrent implementations explain the difference
between channel-based systems and actor-based systems. (6 marks)
d. Provide code snipet that will indicate how to call a Stored Procedure from Java
Database connectivity. (4 marks)
Page 3 of 3
Page 3 of 5
Page 4 of 5
Page 5 of 5