$s *
i rSEijli! ttfig ii5 riiig iEiig ftil itEi
ssffi
v sernester B.c.A. Degree u*g-#Joon, November/December
z01B
(Y2KB) (Repearers)
Computer Seience
BCA 504 : JAVA PROGRAMI,IING
Time : 3 Hours
Max. Marks: 60/70
lnstructions: i) Answer all the Secfi'ons.
ii) Section - D ,s apptieable to the students
who were
admitted in Z0'lS-14 and onwards.
SECTION -A
l. Ansu,rer any ten questlons :
('10x1=10)
1) write any two difference between class and method.
2) Why JAVA is ptarform independent ?
3) What is Unieode ?
4) When do we declare a method as finil ?
5) What are the data types used in JAVA ?
6) What is an apptet ?
7) What is type casting ?
8) How array is created in JAVA ?
9) What is interface ?
10) What is package ?
11) What is the use of this keyword ?
12) What are the basic types of JAVA streams
?
SECTION - B
ll. Answer any five questions :
{5x3-xS}
13) Explain the structure of JAVA program.
14) Explain any four characteristics of JAVA.
15) Explain access speclfier in JAVA.
F-T.O.
ss - 696 I iE$iffiit itsiE fi! fftis tfil!
gifi
if;ii
16) Explain class with an example.
,
17) Explain try, catch and throw with an example.
18) Write a program to check whether the given number is prime
or not.
19) Explain any three,types of input-stream class.
20) what is vectiir-? Mention its advantages over array.
SECTION -C
lll. Answer any five questions :
(5x7=35)
21) a) Explain command Iine arguments. 4
b) How will you compile and execute JAVA program ? 3
22) Explain different methods of string class.
23) Write a program to print multiplication table of a number by accepting
the number from user using Keyboard
24) Explain JVM and its components.
25) Explain constructor overloaoing witn an programming example.
26) Explain life cycle of an applet with an example.
27) What is inheritance ? Explain with'JAVA program to demonstrate single
level inheritance.
28) Explain method overloading and method overriding with suitable example.
SECTION - D
lV. Answer any one question : (1xI0=10)
29) Write a program to implement key events.
10
30) Write a short note on :
a) Wrapper class. 5
b) Graphics class. 5