Java

2
  UTTARANCHAL UNIVERSITY, DEHRADUN Make-Up Examinations, April !"# MCA-IV Semester $ro%rammin% in &a'a (MCA-)*"+ Time Hor Max* Marks .! Note All /estions are 0omplsor1* /*"- 2rite s3ort notes on an1 t3ree o4 t3e 4ollo5in% s* (6 marks+ i- Loops in Java ii- Data Ty pes in Java ii i-F eatures of Ja va iv- Funct ion Ove rlo ading /*- Attempt an1 t5o 4rom t3e 4ollo5in% (7 marks+ (a+ Write a program in /java to find the sum of two numers using !canner class" (8+ #$plain the concept of Function Overriding with an e$ample" (0+ What is %nheritance& 'ow many types of %nheritance does java support& Write a program in  java for !ingle %nheritance" /*.- Attempt an1 t5o 4rom t3e 4ollo5i n% (7 marks+ (a+ What is interface& Why we use it& Write a program in java to implement an interface"  (8+ What is (pplet& Write a program using Java (pplet"" (0+ #$plain the concept of e$ception handling with and e$ample * " /*)- Attempt an1 t5o 4rom t3e 4ollo5in% (7 marks+ (a+ #$plain the life cycle of a Thread) Write a program for multithreading in java" (8+ #$plain any three methods of !tring and !tring*uffer +lass"  (0+ Write a program in java to chec, input numer is even or odd" UTTARANCHAL UNIVERSITY, DEHRADUN Make-Up Examinations, April !"# MCA-IV Semester $ro%rammin% in &a'a (MCA-)*"+ Time Hor Max* Marks .! Note All /estions are 0omplsor1* /*"- 2rite s3ort notes on an1 t3ree o4 t3e 4ollo5in% s* (6 marks+ i- Loops in Java ii- Data Ty pes in Java ii i-F eatures of Ja va iv- Funct ion Overloading /*- Attempt an1 t5o 4rom t3e 4ollo5in% (7 marks+ (a+ Write a program in /java to find the sum of two numers using !canner class" (8+ #$plain the concept of Function Overriding with an e$ample" (0+ What is %nheritance& 'ow many types of %nheritance does java support& Write a program in  java for !ingle %nheritance" /*.- Attempt an1 t5o 4rom t3e 4ollo5i n% (7 marks+ (a+ What is interface& Why we use it& Write a program in java to implement an interface"  (8+ What is (pplet& Write a program using Java (pplet"" (0+ #$plain the concept of e$ception handling with and e$ample * " /*)- Attempt an1 t5o 4rom t3e 4ollo5in% (7 marks+ (a+ #$plain the life cycle of a Thread) Write a program for multithreading in java" (8+ #$plain any three methods of !tring and !tring*uffer +lass"  (0+ Write a program in java to chec, input numer is even or odd"

description

java bofdjfdksjfdklsfjsdkfjsdf

Transcript of Java

UTTARANCHAL UNIVERSITY, DEHRADUN

Make-Up Examinations, April 2015

MCA-IV Semester

Programming in Java (MCA-4.1)

Time: 2 Hour Max. Marks: 30

Note: All Questions are compulsory.

Q.1- Write short notes on any three of the followings. (9 marks)

i- Loops in Java ii- Data Types in Java

iii-Features of Javaiv- Function Overloading

Q.2- Attempt any two from the following : (7 marks)

(a) Write a program in /java to find the sum of two numbers using Scanner class.

(b) Explain the concept of Function Overriding with an example.

(c) What is Inheritance? How many types of Inheritance does java support? Write a program in java for Single Inheritance.

Q.3- Attempt any two from the following (7 marks)

(a) What is interface? Why we use it? Write a program in java to implement an interface.

(b) What is Applet? Write a program using Java Applet..

(c) Explain the concept of exception handling with and example.

.

Q.4- Attempt any two from the following (7 marks)

(a) Explain the life cycle of a Thread, Write a program for multithreading in java.

(b) Explain any three methods of String and StringBuffer Class.

(c) Write a program in java to check input number is even or odd.

UTTARANCHAL UNIVERSITY, DEHRADUN

Make-Up Examinations, April 2015

MCA-IV Semester

Programming in Java (MCA-4.1)

Time: 2 Hour Max. Marks: 30

Note: All Questions are compulsory.

Q.1- Write short notes on any three of the followings. (9 marks)

i- Loops in Java ii- Data Types in Java

iii-Features of Javaiv- Function Overloading

Q.2- Attempt any two from the following : (7 marks)

(a) Write a program in /java to find the sum of two numbers using Scanner class.

(b) Explain the concept of Function Overriding with an example.

(c) What is Inheritance? How many types of Inheritance does java support? Write a program in java for Single Inheritance.

Q.3- Attempt any two from the following (7 marks)

(a) What is interface? Why we use it? Write a program in java to implement an interface.

(b) What is Applet? Write a program using Java Applet..

(c) Explain the concept of exception handling with and example.

.

Q.4- Attempt any two from the following (7 marks)

(a) Explain the life cycle of a Thread, Write a program for multithreading in java.

(b) Explain any three methods of String and StringBuffer Class.

(c) Write a program in java to check input number is even or odd.