CS -74 Introduction To Internet ProgrammingDec -2002
Question Paper of CS -74 Introduction To Internet ProgrammingDec -2002
Ql (i). Write a complete Java program to find out whether the string t, is contained in the string t. If so, it returns the offset of the first match. If not, it returns -1.
(ii) Answer the following questions:
(a) What is the relationship between Java and HTML?
(b) What happens when your program attempts to access an array element with an invalid index?
© How do you set colours and fonts in a graphics context? How do you find the current colour and font style?
(d) Describe the paint() method. Where is it defined? How is it invoked?
(e) Comment on “Java is a robust programming language".