Programming & Object Structures (Java) – April 2015

Part – A

    1. How do you create and run a program in C?
    2. Give the neat structure of operator precedence.
    3. Difference between selection and iteration.
    4. What is the difference between data hiding and data abstraction?
    5. Difference between throw and throws keyword in exceptional handling. Give the uses of super keyword.
    6. What is an inner class? Why do we use it?
    7. Why do we use type wrappers?
    8. What is the difference between iterator and list iterator?
    9. What is an Adapter class?

Part – B

Unit -I

    1. Explain the issues on system development.
    2. Write a program that uses continue to print a triangular multiplication of table for 0 through 9 in Java.
    1. What are the basic data types in C? What significance of long, short?
    2. Illustrate how do you define constants? Contrast string constant with character constant.

Unit -II

    1. What is the significance of main thread in multithreading? Explain with an example how you can control main thread.
    2. Write a simple Java program to get ’n’ integers as command line arguments and find the sum.
    1. Java is a.platform independent language. Justify.
    2. Write a java program that uses overloaded contractors.

Unit -III

    1. Write a Java program to illustrate the usage of super to access the member of a super class that has been hidden by a member of subclass.
    2. Contrast method overriding vs. method overloading. Which is necessary for runtime polymorphism. Justify?
    1. Explain the significance of various access specifiers in packages.
    2. Briefly explain about interfaces and how is it different from a class and an abstract class.

Unit -IV

    1. Explain StringTokenizer with an example.
    2. Explain client / server interaction with Datagram using an example.
    1. Explain File management with suitable examples using Re class.
    2. Explain about comparable interface and its methods.

Unit -V

    1. Give the AWT class hierarchy. Explain about MVC architecture.
    2. Write a program to handle mouse events using delegation event model.
    1. Differentiate Swings and Applets. Explain the life cycle of an Applet.
    2. Write a program for implementing card layout.

Attention : This exam questions are converted from the real exam paper to a digital text format by using an OCR Software that may made some mistakes, I reviewed it many times to correct it, But may still there some errors that I missed or misspelled, So if you detect an error or mistake PLEASE report by adding a comment or contact me.