0% found this document useful (0 votes)
0 views

38JavaProgrammingMarch2023

This document is an examination paper for the V Semester B.C.A. course on Java Programming, conducted in March 2019. It consists of two sections: Section A requires answering ten short questions for a total of 20 marks, while Section B consists of five questions, each worth 10 marks, covering various Java programming concepts. Topics include Java features, constructors, inheritance, exception handling, and file I/O classes.

Uploaded by

Nandini B P
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

38JavaProgrammingMarch2023

This document is an examination paper for the V Semester B.C.A. course on Java Programming, conducted in March 2019. It consists of two sections: Section A requires answering ten short questions for a total of 20 marks, while Section B consists of five questions, each worth 10 marks, covering various Java programming concepts. Topics include Java features, constructors, inheritance, exception handling, and file I/O classes.

Uploaded by

Nandini B P
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ilffi$ilr$lffiffiffl[lfln cs - 4gg

V Semester B.C.A. ,"#P" Examination, March zlJzg


(Y2K14) (cBcS) (F + R)
COMPUTER SCIENCE
BCA 504 : Java Programming
Time : 3 Hours Max. Marks:70

lnstruction : Answer all Sections.

SECTION _ A

l. Answer any ten questions. Each question carries 2 marks. (10x2=20)

1) What are the default values of Boolean and Char primitives data types in
Java ?

2) Give the general form of switch statement.

3) What is the difference between default constructor and parametrized


constructor ?

4) What is the difference between static variables and instance variables ?


5) What is the use of super keyword ?
6) Define JVM.

7) What is the difference between class and interface ?


B) Mention any four reaO methods.
lf
9) What is checked exception ? Give an example.

10) Mention the attributes of PARAM tag.


1 1) What is the use of Java l/O classes ?
12) Briefly mention the broad classification of Java stream classes.

P.T.O.
cs - 499 IlllffiffiililtIilililtffitilll

SECTION -B
ll. Answer any five questions. (5x10=50)
13) a) Explain the features of Java. 7
b) Explain the difference between Java and C++. 3
14) a) Mention any five Mathematical functions of math class with examples. 5
b) Explain constructgr a!9 its types with example. 5
15) a) Demonstrate'this'keyword with simple Java program. 5
b) Define inheritance. Explain any two types of inheritance with example. 5
16) a) Write a program to sort the given numbers with exception handling
concept. 5
b) Explain the process of creating user defined package with an example. 5
17) a) Explain the life cycle of a thread. 5
b) Write the steps involved in creating thread by implementing runnable
interface. 5
18) a) Explain user defined exceptions in Java. 5
b) Explain life cycle of an applet with a neat diagram. 5
19) a) Explain any five methods of graphics class with an example for each. 5
b) Write a program to implement keyboard events. 5
20) a) Explain the use of FilelnputStream class and OutputStream class. 5
b) Explain any fivq, string methods with syntax and example. 5

You might also like