Java Programming 2017
Java Programming 2017
QUESTION ONE:
a) Name and explain two types of programs that can be created by java (4 marks)
b) Describe five features of JAVA. (10 marks)
c) Explain the four Object Oriented programming principles. (8 marks)
d) Differentiate between println and printf system. out methods. (2 marks)
e) Write the code for a javaapplication that will display the string “Hello World”.
(6 marks)
QUESTION TWO:
QUESTION THREE:
a) Develop a java applet that will draw a display a welcome message.(10 marks)
b) Using examples differentiate between while and do while loops.(6 marks)
c) List four essentials of counter-controlled repetition. (4 marks)
QUESTION FOUR:
QUESTION FIVE
a) You are requested by a bank manager to develop a desktop application that will do the
following:
Display account details for account holders
Receive deposits from account holders
Allow account holders to withdraw
Write a java application with at least 3 classes that will perform the tasks above
and a fourth class that will have the main method. (20 marks)
END