How To Exam?

a knowledge trading engine...


Jawaharlal Nehru Technological University Kakinada 2008 B.Tech Information Technology OOPS THROUGH JAVA - Question Paper

Saturday, 10 August 2013 05:05Web
described in the derived class. At the point of definition of this variable, provide it a
nonzero value. In the base-class constructor, call this method. In main( ), create
an object of the derived type, and then call its print( ) method. discuss the outcomes.
[16]
4. Write a program create an interface U with 3 methods. Create a class A with
a method that produces a reference to a U by building an anonymous inner class.
Create a 2nd class B that contains an array of U. B should have 1 method
that accepts and stores a reference to a U in the array, a 2nd method that sets
a reference in the array (specified by the method argument) to null and a third
method that moves through the array and calls the methods in U. In main( ),
create a group of A objects and a single B. Fill the B with U references produced
by the A objects. Use the B to call back into all the A objects. Remove a few of
the U references from the B. [16]
5. (a) discuss throws statement in Java with the help of an example program.
(b) What is the difference ranging from throw and throws statement. [8+8]
6. (a) Write a java program which draws a dashed line and dotted line using applet.
(b) Write a java program to draw a polygon of 8 edges. [10+6]
7. (a) In what way JList differ from JComboBox?
1 of 2
Code No: R05220402 Set No. 3
(b) JList does not support scrolling. Why? How this can be remedied? discuss
with an example. [6+10]
8. describe sockets. Use socket programming to design a client/server application that
takes the password as input and checks whether it is accurate. The program should
print the improper message. [16]
? ? ? ? ?
2 of 2
Code No: R05220402 Set No. 4
II B.Tech II Semester Regular Examinations, Apr/May 2008
OOP THROUGH JAVA
( Common to Electronics & Communication Engineering, Computer Science
& Engineering, info Technology, Computer Science & Systems
Engineering, Electronics & Telematics and Electronics & Computer
Engineering)
Time: three hours Max Marks: 80
ans any 5 ques.
All ques. carry equal marks
? ? ? ? ?
1. Write a program that will calculate the subsequent series:
(a) 1/1 + 1/2 + 1/3 + ...... + 1/n
(b) 1/1 + 1/2 + 1/2
2
+ ....... + 1/2n. [8+8]
2. (a) What is a constructor? elaborate its special properties?
(b) How do we invoke a constructor?
(c) elaborate objects? How are they created from a class? [6+4+6]
3. discuss about Object class in detail. [16]
4. (a) What is interface? Write a program to demonstrate how interfaces can be
extended.
(b) What is package? How do you create a package? discuss about the access
protection in packages? [8+8]
5. (a) discuss how threads with various priorities execute in environment which
supports priorities and which doesn’t support priorities.
(b) elaborate the functions available in java related to priority. [10+6]
6. (a) Why do you use frames?
(b) discuss the syntax and functionality of various methods related to Frames.
[4+12]
7. discuss the steps involved in creating JCheckBox, JRadioButton, JButton, JLabel.
[4+4+4+4]
8. Write a program to illustrate the usage of the subsequent methods of StringBuffer
class. discuss the output in every case. Delete(), setChatAt(), deleteChatAt(),
append(), chatAt(), getChars(). [16]
? ? ? ? ?
1 of 1




( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Jawaharlal Nehru Technological University Kakinada 2008 B.Tech Information Technology OOPS THROUGH JAVA - Question Paper