Exam Details

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


Question Paper

Hall Ticket No Question Paper Code: ACS003
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
B.Tech III Semester End Examinations (Regular) December, 2017
Regulation: IARE R16
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Computer Science and Engineering))
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. What are class and objects? Explain how an object can be constructed from a class with suitable
example.
Write a Java Program that accepts U (initial velocity) and A (Acceleration) and displays the
distance with Time intervals i.e. 3 ….n. Use the formula s=UT 1/2AT2:
2. What is Byte code? Explain the various stages of programming in Java.
Create a class called rectangle containing variables length, width and methods AreaCalc() and
PerimterCalc() and Invoke these methods from the main class to calculate the area and Perimeters
of a Rectangle. Use constructor for initializing the length and width.
UNIT II
3. With the help of a code segment, justify how code redundancy can be reduced using inheritance?
Taking three classes into consideration represent multilevel inheritance between them using the
code as well as diagram.
What is an interface? Create an interface called ThreeDFigure containing some constants and
methods for calculating surface area and volume. Create a main class which will makes use of
this interface. Discuss about the changes in the access privilege between main class and interface.

4. What is a package? Create a package called student with a class Academic and interface sports.
Now write a Java program that will make use of this student package.
Explain the keywords this, static, super and final with one example each.
UNIT III
5. Differentiate between throw and throws. Differentiate between error and exception. Give example.

What the states/lifecycle of a thread, Explain with a neat diagram
6. Write a program that creates 3 threads by extending Thread class. First thread displays "Good
Morning" every 1 sec, the second thread displays "Hello" every 2 seconds and the third displays
"Welcome" every 3 seconds.
Explain thread synchronization in detail.
Page 1 of 2
UNIT IV
7. Write programs for:
i. To create a text file in the path c:njavanabc.txt and check whether that file is exists. Using
the command exists(), isDirectory(), isFile(), getName() andgetAbsolutePath().
ii. To rename the given file, after renaming the file delete the renamed file. (Accept the file name
using command line arguments.)
What is a stream? Explain Byte Stream and Character Stream.
8. What are the various steps that are to be followed while writing a sample JDBC program?
Write Java JDBC program that update the records in a Student table in Database containing
the fields Roll Number (Integer), Name (String), Branch (String), Percentage (Float) based on
Roll Number (Integer).
UNIT V
9. List and explain 7 commonly used controls while designing GUI using AWT.
What is an applet? Explain the lifecycle of an applet.
10. Create an Applet that displays a sample message, by illustrating the life cycle.
Write a Java Program that creates a sample JPanel containing some swing components.


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