Tuesday, 20 September 2011

IT2301 RETEST QUESTION PAPERS


RETEST QUESTION  PAPERS
Answer All Questions
PART A – (5 x 2 = 10 Marks)
1. What are the mehods available in the Object class.
2. How does the declaration of a local inner class differ from the declaration of an anonymous    
     inner class.
3. What is the difference between the File and Random Access File classes?
4. Define serialization and BufferedReader class
5. Differentiate Interface and Abstract class.

PART – B [16+16+8 = 40 Marks]
6.a).i).What is object cloning? Why it is needed? Explain how objects are cloned? And
          Explain the types of cloning with an example program.                                               (10)                                                                     
       ii)Explain all 2D package classes.Write a java program to draw the circle using
          swing components.                                                                                                   (6)                                               
                                                                    (or)                                                         
    b).i))Define reflection and uses of reflection.Explain the following term related to Reflection
        1)Analyze the cabability of classes.     2) Analyze the Object capability at run time.
        3)Generic array code implementation.  4)Exception types.5)Class class                          (14)
        ii)Draw the structure of relationship between the shape classes.                                      (2)
     
7.a)i)What is Frame? How is a Frame created? Explain Frame properties.Write a java program
         display “Not a Hello,World  Program with Red Color” label  in the Frame window.        (8)
      ii) Write a code to copy the contents of the file input.txt one byte at a time to output.txt     (4)
      iii)Write a java program to calculate sum,average of  5 number using interface                  (4)
                                                                  (or)
  b).i) Explain the types of Inner classes.                                                                   (6)
       ii)Briefly explain about I/O streams with an example program.                                       (10)
                       
3. a) Consider a class person with attributes firstname and lastname.Write a java program to       
        create and clone instances of the Person class.                                                             (8)                                                                                  
                                                                 (or)
      
b)i)write a java program  to display  the “JAVA PROGRAMMING LAB”  message  with  
             yellow color  using java swing text component.(4)
          ii) Define Proxy class?When you need that class? Define all Proxy Class methods.         (4)

*******************************ALL THE BEST*************************

No comments:

Post a Comment