Professional Documents
Culture Documents
420552
OR
IV-B.Tech. II-Semester Examination April, 2003
2.a) What is a constructor? Explain the use of constructor with a small Java program.
b) What are the various access specifiers available in Java? Explain the purpose of
access specifiers with examples.
3.a) What are the various uses of super class? Explain with examples.
b) What is the use of object class defined by Java? What are the methods defined in
the object class? Explain the purpose of each method defined in object class.
5. Write a detailed note on how exceptions are handled in Java using try, catch,
throw, throws and finally.
6. Write a detailed note on how Input/Output (I/O) is handled in Java. Explain also
how to read and write files in Java.