Sei sulla pagina 1di 1

K. K. WAGH POLYTECHNIC, NASHIK - 3.

DEPARTMENT OF COMPUTER TECHNOLOGY.


SESSIONAL THEORY TEST- 1 (OCT 2007)
CLASS: TYCM. TIME: 2 Hrs.
SUB: CORE JAVA (CJV - 1524) MARKS: 50.
= = = = = = = = = = = = = = = = = = = = = = = = = = == = = = = =
Instructions:-
1) All questions are compulsory.
2) Illustrate your answers with neat sketches wherever necessary.
3) Use of Non programmable Electronics Calculator is permissible.
4) Figures to the right indicate full marks.
5) Assume suitable additional data, if necessary.

Q.1 Attempt any SIX of the following: 18

a) Explain: bytecode and Java Virtual Machine.


b) Explain the use of this keyword with proper example.
c) Describe garbage collection performed in Java.
d) Explain concept of nested and inner classes with suitable
example.
e) Explain any four Byte wrapper class methods.
f) What is the use of new operator and boolean data type?
g) Explain the application of trim(), length() methods of String
class and length attribute for arrays.
h) Describe differences between protected and private access.

Q.2 Attempt any FOUR of the following: 16

a) Explain how Vector is used as a queue?


b) Explain the statements: javac prog.java
java prog 45 12 23
c) Give and explain syntax of any two Long as well as Double class
methods.
d) Describe the differences between static and final.
e) Write a program to find the entered number is prime or not? Your
program must use command – line arguments.
f) Describe the functions performed by javap, javah, javadoc and
jdb.

Q.3 Attempt any TWO of the following: 16

a) Describe in detail.
i) Arrays class methods ii) indexOf()method
iii) return statement iv) Post-test loop
b) Write a program to accept the string from user and invert each of
character of the string. e.g. input = “AbCdE” output = “aBcDe”.
c) Explain: why Java is superior to other programming languages?

*ALL THE BEST *

Potrebbero piacerti anche