0% found this document useful (0 votes)
12 views6 pages

Fifth: Total

Polytechnic college paper

Uploaded by

ajmeramahesh18
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)
12 views6 pages

Fifth: Total

Polytechnic college paper

Uploaded by

ajmeramahesh18
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/ 6

F1202317160 Total Pages : 6 !

, -

Fifth Semester
Co mp uter Science and Engineering/Information
Technology
Scheme OCBC 2019
JAVAPROGRAMMNG
Time : Three Hours Maximum Marks : 70
Note :I A117 Questions areCompulsory. Intemal choices has been
given in eachLO (LeamingOutcome).
qtfr z qaq 3Tm tr Giidfuo fr.m-fl y-cio ro (dffirT silscqrq)
{Rqqqtr
D In case of any doubt or dispute, the English version question
should be treated as final.
fu-S lfr non b vik ererqr fuqK fr Rft { eiM qlqr b
qQq'o) eiftq qnr qrtnr

a. LO Questions Marks

1. LOz a) Define class inJava. J

qrfl { class o\ EqgEgt


1
b) Explain symbolic constants. J

Symbolic constants zn\ qrrflr{gt

c) What is constructor in Java? Write 4


characteristics of constructor.
91eT { constructorrqr dd t? Constructor
fr frelq-drefi o\ ftfuqr
OR/sTerqr
a) Define scope of variables. J
variables h scope d nqgrEqr
b) WhatisJVM?Explain. J

na{ E{ir tt"or tz HrErrggt


Ft2023t7t60 P.T.O.
l2l

Questions
What is Data tYPes of Java? ExPlain'
qrqr it frfus Pata types T{T tf eqsEqt

a) What is control statements in Java? Explain'


qHr fr control statements qq EH t?
qqgr{gl
b) Explainbreakandcontinue statements'
breakoUt continue statements Eh) s{$ITQql

c) Write differencebetween abstract class and


intertace.

Abstract class dUI interface S q'tq ei<tq


ftfuqr
OR/3TQ'ltlT

a) Define access modifier in Java'


or+ { access modifierd eqflr{qt
b) Write difference between compile time
polymorphism and run time polyrnorphism'
Compile time polymorphism (UI run time
polymorphismh qta 3iil{ ftfuql
c) What is method overriding? Explain with
example.'

Method overridingetll *-e tZ wlE<ur H.trd


flqfl-{gl

LO6 Define string buffer class? Also write


methods of stringbuffer class.

String buffer class o) qqgr{ql f,ea {€-h


qller stringbuffer class ilmethods dftfuqt

Contd.....
81202317160
i3l

a. LO Questions Marks
b) Explain wrapper class in Java. J
qrqr ii wrapper class o\ qlt-5l.r{gl
a
c) What is package inJava? Explain JavaAPI J
package.
sl-al ii package 4qr Ei-A tZ qr4t ,q.Pt

package m} eqgrEqt
oR/3Te.Flr

a) How do you create package containing 5


classes and interfaces in Java? Explain.
qtqr C 3TN classes dUT ihterfaces o)
contain s{+ erd package d ft-s n+-n
create otif qqeEql
b) What is threadinJava? Explain life cycle of 5

threadwithdiagzm.
qrqr fr threadqqT di tz threaoh d-cm
Tfr o1 fu{ ERr sqE[rEql

J
4. LO9 a) Define threadpriority.
Thread priority o1 qEEIiqg I

b) How do you create a thread by implementing 7


runnable interface in Java? Explain.
qq fi runnable interface & implementing t
fr-q ltmt-{ thread create ottf qrrgl-{gl

OR/3TEt[T

a) Write types of errors in Java. J


qrql ii erors b q-dn"n qf,rggl
a
J
b) Define exception handling.
Exception handling +) nraqg t

Ft202317160 P.T.O.
l4l

a. LO Questions Marks
c) Create your own exception and explain it. 4
go exception create +-<h s-qEn qqg6ql

5. LO10 a) Define Steam classes. What is byte steam 5


classes and character stream classes?

Stream classes d
eqgr{qr Byte stream
classes dUT character stream classes 4rll
tt-ft tiqqsrgsl
b) What is File class? How do you create a 5
file in Java and read/write character in file?
Explain?
File class Tqr ilfr $7 vr+r ii enq file ft-s
*F-t-{ create entt deJT sst fu-s ron
character read/write mti ? sqgr{q I

OR/3TE?TI

a) Write program implementing interactive


a 5
input/output using stream classes.
Steam classss mt u5s ffiinteractive inpuV
output o) implement m-ri qrdl program
ftfuqr
b) How do you handle primitive da!4 types of 5
file class? Explain.
File classii sFI primitiv" 6u6 a) fu qon
handlemtt? qqgr{gl

6. LOtz a) Define InpuVOutput exceptions in stream 4


class.

Stream class ii Input/Ouput exceptions e\


q.rr$il-{gt

F12023t7t60 Contd.....
t5l

a. LO Questions Marks
b) What is random access files? Also explain 6
concatenating and buffering fi les.

Random access files Tal ttor tZ {tU fr


files b concatenating dUT buffering o1
qrl$Ir{gl

OR/3TE.IT

a) Write and explain thread methods.


4

Thread methods d ft-€-fl qqgE\l


b) What is try and catch blocks? How many 6
catch blocics can be used with one ty block?
Also write about finally block.

Try dUI catch blocks eql *i tZ Eq qf, tly


block b qrQI ffi catch blocks use 41
e-fi-d tr qtE d finally blocko\ qrl${r{gl

7. LO14 a) Define socket. Whatis Port? J

Socket o\ srg'rEqr Port TrlI ttot tZ


b) Write steps for client and server side socket 4
programming.

client delT server side socket programming


* ft\ steps ftfugt
c) What is the use of socket class ofjava io 3
package?

java io package fr socket class @-1 4dil


Bqqh rY-oi tz
OR/eTemr

Ft202317160 P.T.O,
t6l

a. LO Questions Marks

a) Explain fundamentals of socket and socket 5


programmurg.

Socket dadT socket programming fi


fundamentals o\ sqgEgt
b) Whatis TCP andUDP? Explain datagram 5
socket which use UDP.
TCP delr UDP Tqr drt t? Datagram socket
q\ uop tnr gqq)zr EFTo t sd eqsr{qr

-erGr:€e-

B t2023t7160

You might also like