Q4(a). What is multithreading? What is the difference between a thread and a process? When do you use the thread class and when do you use the Runnah]e interface? What are the differences?
Question Paper of CS -74 Introduction To Internet Programming Dec -2001
Ql(i). Describe Unicode and ASCII code.
(ii) Java is object-oriented. What are the advantages of object-oriented programming compared to procedural oriented programming?
(iii) Write a recursive program in Java for the greatest common divisor (GCD), Given two positive integers, the GCD is the largest integer that divides them both.
(iv) What is the need of a layout manager? Describe flo wlayout. How do you create a flowlayout manager? How do you add a componenet to a flow-layout container? Is the number of components to be added to a flow-layout container limited?
Q2. Defferentiate between
Question Paper of CS -74 Introduction To Internet Programming June -2002
Ql(i). Write a Java program that reads in an integer and breaks it into a sequence of individual digits, for example, the input 16384 is displayed as 1 6 3 8 4.
(ii) Answer the following questions:
(a) What is a final variable? Can you define a final variable without supplying its value?
(b) What is the Java virtual machine ? Explain it.
(c) What is a integrated programming environment?
(d) Describe the paint() method. Where is it defined? How is it invoked?
(e) What method do you use to obtain an input
Question Paper of CS-74 Introduction To Internet Programming June - 2005
Q.l(a) Write a program in Java to find the largest and smallest of n numbers stored in an array, where n is a positive integer.
Program to find Max and Min in an Array.
(b) What happens if final is applied to method in a class ? Explain with the help of suitable example.
(c) Write the output of the following statements