0% found this document useful (0 votes)
70 views2 pages

Programming in Java: Instruction To Candidates

This document contains instructions and questions for an exam on programming in Java. It is divided into three sections - Section A contains 10 short answer questions worth 2 marks each, Section B contains 4 long answer questions worth 5 marks each, and Section C contains 2 long answer questions worth 10 marks each. The exam is worth a total of 60 marks and lasts 3 hours.

Uploaded by

Das Kum
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)
70 views2 pages

Programming in Java: Instruction To Candidates

This document contains instructions and questions for an exam on programming in Java. It is divided into three sections - Section A contains 10 short answer questions worth 2 marks each, Section B contains 4 long answer questions worth 5 marks each, and Section C contains 2 long answer questions worth 10 marks each. The exam is worth a total of 60 marks and lasts 3 hours.

Uploaded by

Das Kum
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

22659 22659 22659 22659 22659 22659 22659 22659 22659

22659 Roll No.


22659 22659 22659 22659 22659 Total22659
No. of Pages
22659 : 02 22659

Total No. of Questions : 09


B.Tech. (IT) (2011 Onwards) (Sem.–5)
22659 22659 22659 PROGRAMMING
22659 22659 IN22659
JAVA 22659 22659 22659

Subject Code : BTIT-502


Paper ID : [A2123]
22659 Time : 3 Hrs.
22659 22659 22659 22659 22659 Max. Marks
22659 22659 : 60 22659

INSTRUCTION TO CANDIDATES :
1. SECTION-A is COMPULSORY consisting of TEN questions carrying T WO marks
22659 22659
each. 22659 22659 22659 22659 22659 22659 22659

2. SECTION-B contains FIVE questions carrying FIVE marks each and students
has to attempt any FOUR questions.
3. SECTION-C contains T HREE questions carrying T EN marks each and students
22659 22659 22659
has to attempt any T22659 22659
WO questions. 22659 22659 22659 22659

SECTION-A
22659 22659 22659

Q1 Answer briefly :
22659 22659

o m 22659 22659 22659 22659

22659 22659 a. Give complete


22659 meaning .r c
22659 of statement “public static
22659 void main(String
22659 22659 arg[])”. 22659 22659

b. What is a byte code?


p e m
pa o
.r c
22659 22659 22659 22659 22659 22659 22659 22659 22659
c. What is the difference between final and finally?

22659 22659 22659


br
d. What is dynamic method dispatch?
22659 22659

p e
22659 22659 22659 22659

e. Define socket.

p a
22659 22659 f. What 22659
is the functionality
22659 of using is
22659

br
alive ()? 22659 22659 22659 22659

g. What are unchecked exceptions?


22659 22659 22659 22659 22659 22659 22659 22659 22659
h. Why do we need socket programming?

i. What is difference between thread and a process?


22659 22659 22659 22659 22659 22659 22659 22659 22659

j. What is use of keyword throws?

22659 22659 22659 22659 22659 22659 22659 22659 22659

22659 1 | M-70595
22659 22659 22659 22659 22659 22659 (S2)-120
22659 22659

22659 22659 22659 22659 22659 22659 22659 22659 22659


22659 22659 22659 22659 22659 22659 22659 22659 22659

SECTION-B
22659 22659 22659 22659 22659 22659 22659 22659 22659

2. Write programs to demonstrate the difference between method overloading and method
overriding in Java.
22659 22659 22659 22659 22659 22659 22659 22659 22659

3. Briefly explain the procedure of connecting front end application with any database using
JDBC.
22659 22659 22659 22659 22659 22659 22659 22659 22659
4. Explain about the applet and its life cycle.

5. Explain about interfaces. How they are different from the abstract classes?
22659 22659 22659 22659 22659 22659 22659 22659 22659

6. Demonstrate the creation and handling of our own exception using any program.

22659 22659 22659 22659 22659 22659 22659 22659 22659

SECTION-C
22659 22659
7.
22659 22659 22659

m 22659 22659
Explain different string handling functions and their syntax in java language

o
22659 22659

22659
8.
22659 22659 22659
.r c
Write a program in java to do the following :
22659 22659 22659 22659 22659

p e
a. To swap the two numbers without using the third variable.
m
b. Factorial

pa
22659of a number using recursion.
o
.r c
22659 22659 22659 22659 22659 22659 22659 22659

22659
9.
22659 22659
a. Finalize
br
Write a short note on :
22659 22659

p e
22659 22659 22659 22659

p a
22659 22659
b. I/O streams
22659

c. Socket programming
22659 22659

br 22659 22659 22659 22659

22659 22659
d. Multiple
22659
catch with 22659
single try statement
22659 22659 22659 22659 22659

22659 22659 22659 22659 22659 22659 22659 22659 22659

22659 22659 22659 22659 22659 22659 22659 22659 22659

22659 2 | M-70595
22659 22659 22659 22659 22659 22659 (S2)-120
22659 22659

22659 22659 22659 22659 22659 22659 22659 22659 22659

You might also like