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

NEP BCA II Sem Java 203

Uploaded by

muheezkhan05
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

NEP BCA II Sem Java 203

Uploaded by

muheezkhan05
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Reg. No.

ilililil lllllllllllillllllllllllffiil illllllllllllllllllll


BCACACN 203

Second Semester B.C,A" Degree Examination, July/August 2023


(NEP 2020) (2A21'22 Batch Onwards)
oBJECT ORTENTED GONCEPTS USING JAVA (DSCC)
Time : 2 Hours Max. Marks: 60

Note : Answer a.ny sixquestions.from Part- A and onefull question


from each Unit in Part - B.

PART _ A

1. a) Mention any four advantages of OOP' (6x2=J21

b) What is type conversion ? Mention the types'


c) what is the purpose of break and continue statement ? Give example.
d) What is the use of 'this' keyword in Java ?

e) What is the Purpose of suPer$ ?


fl List any four types of exceptions in Java.
g) List any two features of apptets m'
h) What is an event ? Give example. (t-[tteno,

PART _ B
\,L-
\Ig.
UI{IT - I

2. a) List and explain any four features of Java.


b) What are streams ? List and explain different byte and character streams'
c) Explain the increment, decrement and conditional operator with syntax and
example (4+4+4)

3. a) Explain switch statement with syntax and example'


b) Explain various features of OOP.
c) List and explain different primitive data types available in Java' (4+4+4)

P.T.O.
BcAcAcN 203 lllilllllillllilllillllllllllllllllllililllilllllllllllllll

UNIT - II

4. a) Explain different methods to initialize an array with suitable example.


b) Wr,ite the general form of a class. Explain how to define a class in Java with
suitable example.
c) What is recursion ? lllustrate recursion with a code example. {4+4+4}

5. a) Explain rnethod overloading with suitable example.


b) Explain while loop with syntax and example.
c) Explain command line arguments in Java with example. . (4+4+zl)

uNlr lll ''),


- :t)', I

6. a) Explain single inheritance with suitable example. ,*{r'


:.Lty
b) Explain any four thread methods.
c) Explain how to create and implement interface using suitable example. (4+4+4)
7. a) Explain how to create and use a package in Java with suitable example.
b) Explain exception handling in Java with suitable example.
c) Explain the process of creating a thread by extending a thread class. (4+4+4\

UNIT - IV

8. a) Explain any four methods defined in Applet.


b) Explain how any two mouse events are handled in Applets with suitable
example.
c) Write a note on Swing Components and containers. (4+4+4)

9. a) List and explain any three Event Listener lnterfaces.


b) Explain the purpose of JButton with an example.
c) Explain how any two key events are handled in applets with suitable
example. (4+4+4)

You might also like