http://www.bputonline.
com
Registration No :
Total Number of Pages : 01 B.Tech
PCIT4303
5th Semester Back Examination 2019-20
JAVA PROGRAMMING
BRANCH : AEIE, AERO, CIVIL, CSE, ECE, EEE, EIE,
ELECTRICAL, ETC, IEE, IT, ITE, MECH
Time : 3 Hours
Max Marks : 70
Q.CODE : HB389
Answer Question No.1 which is compulsory and any FIVE from the rest.
The figures in the right hand margin indicate marks.
Q1 Answer the following questions : (2 x 10)
a) Explain why Java is Machine Independent.
b) Explain about the this keyword with examples.
c) Differentiate class, abstract class.
d) What is the purpose of Alive () function in Java.
e) Give a note on layouts in AWT.
f) How does Java support inter thread communication?
g) List the methods in thread class.
h) What is the significance of Java’s byte code?
i) What is light weight process? Discuss.
j) Differentiate between Text field and Text area and also discuss it’s constructors
and method.
Q2 a) Explain briefly the following object oriented concepts. (5)
i) Abstraction ii) Polymorphism
b) Write a sample java program to find the GCD of two numbers. (5)
Q3 a) What is interface? How to create it and access it? Explain with example. (5)
b) How to create packages and use them in java? (5)
Q4 a) What do you mean by multithreading? Develop a simple application program to (5)
illustrate the use of multithreading.
b) Describe different types of JDBC drivers. (5)
Q5 a) Discuss various AWT containers with examples. (5)
b) Discuss the applet structure and compare it with application structure. (5)
Q6 What are java Buzzwords? Explain about them. (10)
Q7 Explain thread life cycle and thread creation in Java with example. (10)
Q8 Write short answer on any TWO : (5 x 2)
a) String Constructors
b) Remote method Invocation (RMI)
c) TCP/IP Server Sockets
http://www.bputonline.com