Rr411002 Object Oriented Programming Systems Through Java

  • July 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Rr411002 Object Oriented Programming Systems Through Java as PDF for free.

More details

  • Words: 308
  • Pages: 1
RR

Code No: RR411002

IV B.Tech I Semester(RR) Supplementary Examinations, December 2009 OBJECT ORIENTED PROGRAMMING THROUGH JAVA (Electronics & Instrumentation Engineering, Electronics & Control Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. (a) Define an array. In Java, how the arrays of different dimensions can be created and initialized?[8] (b) Write about the usages of the keyword ‘final’ in Java. 2. (a) Discuss about static member data and static method with an example.

[8] [5]

(b) How do we invoke a constructor ?

[3]

(c) Design a class to represent a Bank Account. Include the following members. • Name of the depositor • Account number • Type of Account • Balance amount in the account Methods • To assign initial values • To deposit an amount • To withdraw an amount after checking balance • To display the name and the balance.

[8]

3. (a) Write a Java program to arrange a given set of numbers using Quick sort.

[8]

(b) Write a Java program which takes a text and search for a given pattern in the text and find out the place of its first occurrence. The pattern and the text given as command line arguments. [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. Explain the applet architecture in detail.

[16]

7. What are the clauses used in Java to handle exceptions? Explain the syntax of each clause with necessary examples. [16] 8. Write a Java program to read a set of sentences from a text file and check the following : (a) Number of vowels

[5]

(b) Number of Words

[5]

(c) Number of characters And produce a formatted report.

[6] ?????

Related Documents