Exam Details

Subject object oriented programming through java
Paper
Exam / Course b.tech
Department
Organization Institute Of Aeronautical Engineering
Position
Exam Date May, 2018
City, State telangana, hyderabad


Question Paper

Hall Ticket No Question Paper Code: ACS003
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
B.Tech IV Semester End Examinations (Regular) May, 2018
Regulation: IARE R16
Object Oriented Programming through JAVA
Time: 3 Hours Max Marks: 70
Answer ONE Question from each Unit
All Questions Carry Equal Marks
All parts of the question must be answered in one place only
UNIT I
1. Explain Object Oriented Programming principles with suitable examples.
What is a class? Explain how, its members can be created with an example.
2. What is a variable? Explain various types that can define a variable with examples.
Write a program that creates a class student containing attributes name, rollno and percentage
and also creates n number of student objects to print the details of students who got distinction
i.e.
UNIT II
3. List the usage of super keyword and write example code snippet for the same.
Create a class point with members double x and double y. Include method increaseValues(double
which will increase both x and y by a. Also include a method displayPoint() to display its
members values.
i. Create a subclass Point3D with additional members double z. Override method increase
Values() which makes call to super class's overriden method.
ii. Write a demo program to create object of Point3D class and assign it to reference of Point
class. Then invoke the methods and write the output.
4. Explain Interface with an example.
Create an abstract class BankAccount with members balance, interest rate and number of times
the interest is compounded per year. Include abstract method getInterest(TimePeriod).
i. Creates a subclass AlphaBankAccount, which calculates interest as simple interest. principal
rate of Interest time period.
ii. Creates a subclass BetaBankAccount which calculates interest as compound interest.
Principal rate of interest/n) time period). Hint use API Math.pow(double double
b).
iii. Write a demo program to create an array of Bank Account class and assign references in
each array element with object of subclasses . Then invoke the methods on objects using the
array of references.
Page 1 of 2
UNIT III
5. Write a program to demonstrate the usage of throw and throws keyword in exception handling.

Consider a banking application where the programs must throw exception if withdrawal amount
exceeds balance.
i. Create a user defined exception class LowBalance with parameterized constructor. Override
toString() method.
ii. Write a demo program to demonstrate the usage of LowBalance.
6. Demonstrate creation of thread by implementing Runnable interface with a program.
Write a program to create two threads. First thread shall read an array and generate another
array where all the elements are incremented by two. Second thread shall read an array generate
another by multiplying 2 to every element.
UNIT IV
7. What are InputStream and OutputStream classes? List any four methods of these classes.
What is class File? List any four methods from this class.
8. What are the various steps involved while implementing a JDBC program? Explain with proper
code segments.
Write a program that inserts some records of students into Student table containing the details
RollNumber (varchar), Name (varchar), MobileNumber (number) and Percentage (number
using prepared statement. Also display the student records who got first rank in the class.

UNIT V
9. What is an Applet? Create a sample applet program that displays a message.
Discuss AWT hierarchy and Explain any five Abstract Window Toolkit components.[7M]
10. Explain Border and GridLayout Managers with proper syntax.
What is JPanel? Explain the significance of multiple panels while designing a user interaction
window.


Subjects

  • ac machines
  • advanced databases
  • aircraft materials and production
  • aircraft performance
  • aircraft propulsion
  • aircraft systems and controls
  • analog communications
  • analysis of aircraft production
  • antennas and propagation
  • applied physics
  • applied thermodynamics
  • basic electrical and electronics engineering
  • basic electrical engineering
  • building materials construction and planning
  • business economics and financial analysis
  • compiler design
  • complex analysis and probability distribution
  • computational mathematics and integral calculus
  • computer networks
  • computer organization
  • computer organization and architecture
  • computer programming
  • concrete technology
  • control systems
  • data structures
  • database management systems
  • dc machines and transformers
  • design and analysis of algorithms
  • design of machine members
  • digital and pulse circuits
  • digital communications
  • digital ic applications using vhdl
  • digital logic design
  • digital system design
  • disaster management
  • disaster management and mitigation
  • discrete mathematical structures
  • dynamics of machinery
  • electrical circuits
  • electrical measurements and instrumentation
  • electrical technology
  • electromagnetic field theory
  • electromagnetic theory and transmission lines
  • electronic circuit analysis
  • electronic devices and circuits
  • elements of mechanical engineering
  • engineering chemistry
  • engineering drawing
  • engineering geology
  • engineering mechanics
  • engineering physics
  • english
  • english for communication
  • environmental studies
  • finite element methods
  • fluid mechanics
  • fluid mechanics and hydraulics
  • fundamental of electrical and electronics engineering
  • fundamental of electrical engineering
  • gender sensitivity
  • geotechnical engineering
  • heat transfer
  • high speed aerodynamics
  • hydraulics and hydraulic machinery
  • image processing
  • industrial automation and control
  • instrumentation and control systems
  • integrated circuits applications
  • introduction to aerospace engineering
  • kinematics of machinery
  • linear algebra and calculus
  • linear algebra and ordinary differential equations
  • low speed aerodynamics
  • machine tools and metrology
  • mathematical transform techniques
  • mathematical transforms techniques
  • mechanics of fluids and hydraulic machines
  • mechanics of solids
  • mechanism and machine design
  • metallurgy and material science
  • microprocessor and interfacing
  • modern physics
  • network analysis
  • object oriented analysis and design
  • object oriented programming through java
  • operating systems
  • optimization techniques
  • power electronics
  • power generation systems
  • probability and statistics
  • probability theory and stochastic processes
  • production technology
  • programming for problem solving
  • pulse and digital circuits
  • reinforced concrete structures design and drawing
  • software engineering
  • strength of materials - i
  • strength of materials - ii
  • structural analysis
  • surveying
  • theory of computation
  • theory of structures
  • thermal engineering
  • thermo dynamics
  • thermodynamics
  • tool design
  • transmission and distribution systems
  • unconventional machining processes
  • waves and optics
  • web technologies