V SEMESTER B.C.A. EXAMINATION NOV/DEC 2010
Y2K8 SCHEME
COMPUTER SCIENCE
BCA 504 : JAVA PROGRAMMING
Time : 3Hours Max.Marsk: 60
Instruction : Answer all sections
SECTION -A
Answer any ten questions.
1.What is DNS ?
2.How can we say that java is platform independent ?
3.What is instance of an operator ?
4.Differentiate between constructor and a method .
5.What is a garbage collection .
6.How to declare and initialize an array ?
7.Differentiate between a class and interface.
8.What are the different types of threads?
9.differentiate between checked and unchecked exceptions.
10.List different states of threads in its life cycle?
11. What is a stream ? how is it classified ?
12.What is tokenisation ?
SECTION-B
1.How is c++ different from java ?
2.What are the different types of literals in Java.
3.Explain any three MATH CLASS functions with syntax and example.
4.illustrate labelled loops with an example.
5.Explain the use of super keyword with an example.
6.How to stop suspend and resume threads ?
7.How do you pass parameters to an applet ?
8.What are final variable methods and classes ?
SECTION-C
Answer any five questions 5 X 7 = 35
1. a) Explain each word in public static void main( string args[ ])
b) What is java API 4 + 3
2.Explain conditional operations in JAVA with example.
b)Write a program to print multiplication table of a number by accepting the number
from user using key board. 2 + 5
3. a) What is the use of 'this' keyword?
b) Explain constructor overloading with a programming example. 2 +5
4.a) differentiat between method overloading and method overwriting ?
b) Explain with java program to demonstrate single level inheritance. 2 + 5
5.a) Differentiate between vector and arrays.
b) Explain any five methods of vector class ? 2 + 5
6.Explain with the programming examples how to create and use an interface.
7.a)How to create user defined exceptions?Give an examples.
b) Explain life cycle of applets with an examples. 3 + 4
8. a) What is a frame? Give an example to demonstrate .How
a frame window is created.?
b)Write a program to draw a polygon using polygon object. 4 + 3
No comments:
Post a Comment