QUESTIONS:
1.Write a java program to draw a rectangle, the ellipse that is enclosed in the rectangle, a
diagonal of the rectangle, and a circle that has the same center as the rectangle.
2.Explain the properties of Proxy Class and explain Proxy class methods.
3.What is object cloning? Why it is needed? Explain how objects are cloned? And
Explain the types of cloning with an example program.
diagonal of the rectangle, and a circle that has the same center as the rectangle.
2.Explain the properties of Proxy Class and explain Proxy class methods.
3.What is object cloning? Why it is needed? Explain how objects are cloned? And
Explain the types of cloning with an example program.
4.Explain the properties of equals() method and explain the methods of Frame,Component
class.
class.
5.Define Frame.How is a Frame created? Explain the properties of Frame.Write a java
program to display “Not a Hello,Program with Red Color” message in the Frame.
program to display “Not a Hello,Program with Red Color” message in the Frame.
6.Write a short note about character stream classes with an example program.
7. 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.
8.Write a java program to draw the rectangle,Circle,line using java swings.
9. Explain DataInputStream and DataOutputStream class.Write a code to copy the contents
of the file input.txt one byte at a time to output.txt using FOS and FIS.
of the file input.txt one byte at a time to output.txt using FOS and FIS.
10.Explain all 2D package classes.Write a java program to draw the circle using
swing components.
11.Write a java program to calculate sum,average of 5 number using interface
12. Explain the types of Inner classes.
13.Briefly explain about I/O streams with an example program.
14.Consider a class person with attributes firstname and lastname.Write a java program to
create and clone instances of the Person class.
15.write a java program to display the “JAVA PROGRAMMING LAB” message with create and clone instances of the Person class.
yellow color using java swing text component.
16.Define Proxy class?When you need that class? Define all Proxy Class methods.
No comments:
Post a Comment