You are on page 1of 1

Code No: R5411002

R5

IV B.Tech I Semester Supplementary Examinations, Nov/Dec 2011 OBJECT ORIENTED PROGRAMMING SYSTEMS THROUGH JAVA
(Common to Electronics & Instrumentation Engineering and Electronics and Control Engineering)

Time: 3 hours Answer any FIVE Questions All Questions carry equal marks

Max Marks: 80

1. (a) Explain the general syntax of writing an application program in Java. Also explain the steps to run an application Java program. [8] (b) Write the precedence of operators in Java and explain the way to alter this order by using suitable example. [8] 2. (a) What is a class ? How does it accomplish data hiding ? (b) Explain the dierence between an object and a class. (c) What is a constructor ? what are its special properties ? 3. (a) Explain the statement Public Static Void main (String args[ ]) {.......}. [6] [6] [4] [8]

(b) Dene a class called circle with the attributes radius, Circumference and a method to display a circle. In the main method dene a circle of 10 entries. In the command line receive the radius of the circles, construct the circles and display them. [8] 4. Write a program to create window and draw cross lines. 5. (a) Explain the class hierarchy of various window types. (b) Write down any event generators. [16] [8] [8]

6. Applets override update ( ) method of AWT. Justify the statement with an example in detail. [16] 7. (a) Demonstrate the use of thread synchronization primitives. (b) Demonstrate the use of multiple threads in Java. 8. Explain the following : (a) InputStream (b) OutputStream (c) Reader (d) Writer [8] [8] [4x4=16]

1 of 1

You might also like