Question Papers
SET 1 May-2003
- write any six distinct features in Java programming .
- Write about the standard data types in Java.
- How a for loop can be defined and used within the program? Explain with suitable examples.
- Explain the role of Java applets in designing a web page.
- What is object oriented programming? How is it different from the procedure oriented programming?
- What are unique advantages of an object oriented paradigm?
- what kind of things can become objects in object-oriented programming?
- What is an interface? What is the major differences between an interface and class.
- Describe the various forms of implementing interfaces. Give examples of java code for each case.
- Write a Java program to print the following frame . The size increases when you move from left to right.
- Explain the Color class and its different functions used in applet programming and also explain the showstatus() mehtod
with an applet example.
- write a short notes on the following
- Types of Exceptions
- Cautions in using exception clause
- Multithreading
- Thread groups
- Explain the basic concepts of multithreading.
- Demonstrate how threads can be manipulated in java.
SET 2 may-2003
- Discuss the different types of literals available in Java.
- Write about automatic type conversion and explain when casting is needed?
- Define a class in Java. How classes and objects can be in Java programs. Illustrate with example.
- Write down the usage of finalize() method.
- What is class and object? How does it accomplish data hiding?
- What are the common relationship between classes?
- How do you identify the classes/ objects from the problem domain?
- Give an example where interface can be used to support multiple inheritance. Demonstrate a standalone Java program for
the example.
- What are the similarities between interfaces and classes?
- Develop an applet that recieves three numerical values as an input from the user and then displays the largest of the
three on the screen. Write a HTML page and test the applet.
- Explain at least 5 functions of the applet class with necessary example.
- Write an applet that asks the user to enter two floating point numbers, obtain the two numbers from the user and draws
the sum, product , quotient of the two numbers.
- Write short notes on the following
- RuntimeException
- UncaughtException
- Statements used to handle exceptions in Java.
- Demonstrate the use of multiple threads.
- Explain how thread priorities are manipulated.
SET 3 may-2003
- What is a Java Applet? What is the advantage of writing applets in Java? How it differs from application programs?
- What is the usage of import statement ? Explain with suitable example.
- Illustrate usage of different kinds of jump statements break, continue,and return statement in Java program with examples.
- Write a Java applet program to display the welcome message in the center of the screen.
- What data and methods organized in an object oriented program?
- What is constructor in Java? what are its special properties?
- How many types of constructors are there in Java? Explain.
- A super class variable can reference a subclass object. Justify your answer with example program.
- Define reusable classes based on inheritance and abstract classes and abstract methods.
- Write an applet to display the following figure .
- Write an applet program to demonstrate the drawing of line, circle,oval, rectangle and 3d rectangle.
- Why exception handling is considered as a one of the important features in OOP write your explanation with suitable examples.
- Demonstrate the use of thread synchronization primitives.
- Demonstrate the use of multiple threads in Java.
SET 4 may-2003
- Define an array. In java, how the arrays of different dimensions can be created and initialized?
- Write about the usages of the keyword 'final' in Java?
- What is the need for member function or method inside a class? Explain the procedure to define and add a method to a Java
class.
- Explain how a break statement can be used as go to statement in a Java program with example.
- How does object oriented approach differ from object based approach?
- Define class with multiple methods and a constructor.
- Differentiate the local and instance variables. Use suitable example.
- What is an array? How is it different from vector?
- Write a program in Java to add two matrices.
- Differentiate between abstract classes and interfaces.
- Write an applet to draw the following shapes with different color. 1. Ellipse 2. Polygon 3. Cube 4. Cylinder.
- Write an applet which demonstrates tic-tac-toe game.
- What is "Exception handling"? Why is it considered as a necessary feature in JAVA?
- Write program to catch array out of bound exception when you enter more number of arguments at the command prompt.
- What is synchronization? Explain in brief why do we need to synchronize the threads. Identify the role of monitors in
thread synchronization.
|