Object Oriented Programming
III B.Tech II
Academic Year: 2012
Consider a student examination database system that prints the mark sheet of students. Input following from
command line: a) students name b) mark
s in six subjects These marks should be between 0 and 50. If the marks are
not in the specified range, raise a RangeException, else find the total marks and print the percentage of the students.
defined exception named CheckArgument to check th
enumber of arguments passed through command
line. If the number of arguments is less than five, throw the ChechArgument exception, else print the addition of all
the five numbers.
Write a short notes on
hat is String and StringBuffer class? Explain some of the pre
defined methods in String and StringBuffer classes with
Define each of the following terms
d) Preemptive scheduling
If you two
threads in your program, how many threads actually run? Explain the complete flow of threads inside a
Distinguish among each of the following means of pausing threads
c) blocking I/O
Write short notes on
What do y
mean by event delegation model in java? How do the event objects register the event listeners in java?
Write an AWT program to create checkboxes for different courses belonging to a university such that
would be displayed.
Write a temperature conversion program that converts from Fahrenheit to celsius. The fahrenheit temperature
should be entered from keyboard(via textfield). A textfield should be used to display the converted temperature
the following formula for the conversions: celsius =5/9* (fahrenheit
What are the different types of AWT components? How are these components added to containers? Explain the
process of creating Frame and adding Button to it?
applet to identify the key pressed in the window and display the character associated with the key in status
Create an applet that inherits MouseListener interface and displays appropriate messages for each of the methods in
login form which contains a user id, password field, and two buttons, submit and reset. If the user id,
password field left blank, then no click of submit button, show a message to the user to fill in the fields. On click of
reset button, clear the fields
Create two lists using JList class with a button. On click of that button, all selected items in one list are copied to the