Explain the relationship between the Canvas and Graphics

Explain the relationship between the Canvas and Graphics class?..

Answer / amit singh(mca ,niet,grnoida)

relation between Canvas class and Graphics class is that
trugh paint() method Canvas object provides access to a
Graphics object via its paint()

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Core Java Interview Questions

This is my code i have a doubt class ab implements a,b { public void add() { System.out.println("Hi") } } interface a { public void add(); } interface b { public void add(); } in this code i have two interface implemented in the class has same method.just i want to know which method of interface implemented in the class. interface a or interface b? confused me .

3 Answers  

what is the diffrences between platform independent and portable

5 Answers   TCS,

What is a void method?

0 Answers  

what is d difference between deep cloning and shallow cloning in core java?

3 Answers   Satyam,

Explain different ways of creating a thread?

0 Answers  

How would overload a function based on return type?

0 Answers   Genpact,

What do you understand by private, protected and public?

0 Answers  

how tha garbage collector know that the object will be deleted? on which algorithm the garbage collector works? what is the working principle of garbage collector? How manay types of garbage collectors r there?

1 Answers   HP, SparkTG,

Can we have static methods in an interface?

0 Answers  

what is recursion in java

0 Answers   Cap Gemini,

Which is the best way to use for String concatenation in Java?

7 Answers   HCL,

What are the two environment variables that must be set in order to run any java programs?

0 Answers