3. How do you call a method of one class from a method of another class?
4.(a.) Explain how Java programs are compiled and run, and how this differs from the way most other programs are compiled and run.
(b.) Explain with the aid of a diagram the advantages of object oriented approach over structured approach to modular design.
(c.) Write a method that (a) returns the maximum value in an array (b) a method that searches an array and returns the position of an item within the array or -999 if the value is not present in the array.
(i). Write a short menu driven program that makes use of the above methods(array method)