Java
-
Upload
uimlabcomputer -
Category
Documents
-
view
214 -
download
0
description
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.