0% found this document useful (0 votes)
3 views4 pages

Java QB

This document outlines the structure and content of the Annual Online Examination 2021 for B.C.A. Part III in Java programming. It includes sections with various types of questions, such as very short answer, short answer, and long answer questions, covering topics like data types, methods, exception handling, and JDBC connectivity. The examination is designed to assess students' understanding of Java programming concepts and practices.

Uploaded by

durgraipur2023
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)
3 views4 pages

Java QB

This document outlines the structure and content of the Annual Online Examination 2021 for B.C.A. Part III in Java programming. It includes sections with various types of questions, such as very short answer, short answer, and long answer questions, covering topics like data types, methods, exception handling, and JDBC connectivity. The examination is designed to assess students' understanding of Java programming concepts and practices.

Uploaded by

durgraipur2023
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

Code No. : A.B.

C-394
Roll No. ......................... Total No. of Sections : 3 2. tkok ds MsVk izdkjksa dks lwphc¼ djsa tks [Link]±d ekuksa dks
Total No. of Printed Pages : 8 laxzghr djrs g®A
Annual Online Examination 2021
Code No. : A.B.C-394 Exlist data types of Java which store integer values.
B.C.A. Part III tkok esa main ( ) i¼fr dks lkoZtfud D;ksa ?kksf"kr fd;k
3.
JAVA x;k gS\
Paper I
[Programming in Java] Why main ( ) method in Java is declared as public ?

Time : Three Hours ] [ Maximum Marks : 100 4. Dykl dh fof/k cukus vkSj dkWy djus ds fy, fLakVSDl
uksV % [k.M ^v* vfry?kq mÙkjh; izdkj dk] ftlesa nl iz'u gSa] fy[ksaA
vfuok;Z gSA [k.M ^c* esa y?kq mÙkjh; izdkj ds iz'u gSa ,oa Write syntax to create and call method of a class.
[k.M ^l* esa nh?kZ mÙkjh; iz'u gSAa [k.M ^v* dks lcls igys
gy fd;k tkuk gSA 5. This dh&cksMZ ds mi;ksx dks ifjHkkf"kr dhft,A
Note : Section ‘A’ containing 10 very short answer type
questions, is compulsory. Section ‘B’ consists of Define the use of this keyword.
short answer type questions and Section ‘C’
consists of long answer type questions. Section ‘A’ 6. Vªkb&dSp CykWd dk mi;ksx D;k gS\ Vªkb&dSp CykWd dk
has to be solved first. fLakVSDl fyf[k,A
[k.M ^v* What is the use of try-catch block ? Write syntax of
Section ‘A’ try-catch block.
fuEukafdr vfr y?kq mÙkjh; iz'uksa ds mÙkj ,d ;k nks okD;ksa
7. ,DlsI'ku gSaMfyax dh D;k vko';drk gS\
esa nsaA
Answer the following very short answer type What is the need of exception handling ?
questions in one or two sentences. 2×10=20
8. tkok ds fdlh Hkh pkj iSdst dks lwphc¼ dhft,A
1. ßtkok ,d IysVQkWeZ LorU= gSAÞ c;ku dks lgh Bgjkrs g®A
Enlist any four packages of Java.
“Java is a platform independent.” Justify the statement.

P. T. O. [ 2 ]
Code No. : A.B.C-394 Code No. : A.B.C-394
9. lqij dhoMZ ds fdlh Hkh nks mi;ksx dks fyf[k,A vFkok
Or
Give any two usage of super keyword.

10. JDBC dusfDVfoVh D;k gS\ vksojjkbM djus dh fof/k D;k gS\ ,d mngkj.k ls le>kb,A

What is JDBC connectivity ? What is the method of overriding ? Explain with an


example.
[k.M ^c*
Section ‘B’
3. viokn dh Jsf.k;ksa dks lwphc¼ djsa vkSj izR;sd dks ,d
mnkgj.k ds lkFk le>kb,A
fuEukafdr y?kq mÙkjh; iz'uksa ds mÙkj 150-200 'kCn lhek
esa nsaA Enlist categories of an exception and explain each
Answer the following short answer type questions with an example.
with word limit 150-200. 6×5=30 vFkok
Or
1. vkWCtsDV vksfj,aVsM izksxzkfeax dh fo'ks"krk,¡ crkb,A
Explain features of object oriented programming. nks FkszM cukus ds fy, ,d izksxzke fyf[k,] ,d FkszM fo"ke
la[;kvksa dks fizaV djsxk vkSj nwljk FkszM 1 ls 20 uEcjksa ds
vFkok chp dh la[;kvksa dks fizUV djsxkA
Or
Write a program to create two threads, one thread will
jSij Dykl dk mnkgj.k nhft,A print odd numbers and second thread will print even
Give an example of Wrapper class. numbers between 1 to 20 numbers.

2. eYVhysoy bugsfjVsal vkSj gk;jkfpZdy bugsfjVsal dh lajpuk 4. ,d izksxzke fyf[k, tks Arithmetic Exception vkSj Array
fyf[k,A Index Out of Bound Exception dks lEHkky ldsA

Give the structure of multilevel inheritance and Write a program which can handle Arithmetic
hiararchical inheritance. Exception and Array Index Out of Bounds Exception.
[ 3 ] P. T. O. [ 4 ]
Code No. : A.B.C-394 Code No. : A.B.C-394
vFkok vFkok
Or Or

JDBC API ?kVd D;k g®\ vksojyksfMax vkSj vksojjkbfMax fof/k dks ykxw djus ds fy,
tkok izksxzke fyf[k,A
What are the JDBC API components ?
Write a Java program to implement method
5. fLVªax vkSj fLVªxa cQj oxZ ds chp vUrj fyf[k,A
overloading and method overriding.
Differentiate between string and string buffer class.
2. baVjQsl cukus vkSj dk;kZfUor djus ds fy, fLakVSDl fyf[k,A
vFkok fdrus baVjQsl ,d d{kk esa ykxw gks ldrs g® \ ,d mi;qDr
Or mnkgj.k nhft,A
This dh&ckWMZ dks ,d mnkgj.k ds lkFk le>kb,A Write the syntax to create and implement the interface.
How multiple interfaces can be implemented in a class ?
Explain this keyword with an example.
Give a suitable example.
[k.M ^l* vFkok
Section ‘C’
Or
fuEukafdr nh?kZ mÙkjh; iz'uksa ds mÙkj 300-350 'kCn lhek
esa nsaA iSdst dks ifjHkkf"kr dhft,A mi;ksxdrkZ ifjHkkf"kr iSdst
Answer the following long answer type questions cukus ds fy, flaVSDl fyf[k,A iSdst mi;ksx djus ds
with word limit 300-350. 10×5=50 fofHkUu rjhds fyf[k,A
1. [Link] ds lkFk Static nested class and inner class dh Define package. Write syntax to create user defined
O;k[;k dhft,A package. Write different ways to use package.

Explain static nested class and inner class with 3. Try vkSj Multiple catch CykWd dk mi;ksx djds viokn
examples. dks lEHkkyus ds fy, ,d izksxzke fyf[k,A

[ 5 ] P. T. O. [ 6 ]
Code No. : A.B.C-394 Code No. : A.B.C-394
Write a program to handle the exception using try and What is socket programming ? Explain the client side
multiple catch blocks. and server side programming to communicate with
each other.
vFkok
Or vFkok
Or
eYVhFkszfMax okrkoj.k esa ,d u;k thread cukus ds rjhds
D;k g®\ ,d mnkgj.k dk;ZØe ds lkFk Abstract classes le>kb,A
Abstract classes ds [Link] dk Hkh [Link] dhft,A
What are the ways to create a new thread are used in
multithreading environment ? Explain abstract classes with an example program. Also
describe the properties of abstract classes.
4. cQMZ jkbVj oxZ ds i<+us vkSj fy[kus ds rjhdksa dk mi;ksx
djds ,d Qkby dh dkWih contents dks fdlh vU; Qkby rrrrrd rrrrr
esa fyf[k,A
Write a code copy contents of one file into another
file using read and write methods of Buffered Writer
class.

vFkok
Or

tkok esa MsVkcsl ls tqM+us ds fy, vyx&vyx pj.k D;k


g®\
What are the steps to connect to the database in Java ?

5. lkWdsV izksxzkfeax D;k gS\ DykbaV lkbM vkSj loZj lkbM


izkxs zkfeax dks ,d&nwljs ds lkFk laokn djus ds fy, le>kb,A
[ 7 ] P. T. O. [ 8 ] 8/50

You might also like