NP - 227
32.
HSemester B.A./B.Sc. Examination, March/April 2023
(Freshers) (NEP) (2022 - 23 and Onwards)
COMPUTERSCIENCE
Object Oriented Programming using JAVA
Time:2': Hours Ciaror Max. Marks:60
Instruction :Answer all the Parts.
(LIBRARY
PART -A
1) What is the use of new operator ?
galoe
I. Answerany 4 questions. Each question carries 2 marks. (4x2-8)
2
2) Define inheritance. 2
3) Why do we need string buffer class ? 2
4) Define Dynamic Binding. 2
5) What is thread ? 2
6) Define Applet. 2
PART -B
II. Answer any 4 questions. Each question carries 5 marks. (4x5=20)
7) Explain the basic concepts of OOP. 5
8) List out the difference between method and constructor. 5
9) Descritbe the while loop of java with example. 5
10) Write a short note on Abstract method and classes. 5
11) Write a program todraw any 4 shapes in a created window. 5
12) Explain the steps to create a package in java. 5
PART -C
Ill. Answer any 4 questions. Each question carries 8 marks. (4x8=32)
13) Describe the visibility modifiers in detail.
14) Write a short note on GUI components in java.
15) Write a note on event handling in java.
16) Explain thread and thread life cycle. 8
17) What is the purpose of exXception handling and explain try and catch
statements.
18) Explain AWT package and swing in detail. 8