SCJP Certification

Sun Certified Java Programmer Certification exam essentials

Posts Tagged ‘constructor’

December 2nd, 2009

What are the conventions for writing constructors?

No Comments, Java Facts, by Daisy Williams.

A constructor provides a convenient way to initialize a newly created object at the time of its creation. It is…

Share

November 10th, 2009

What will be the ouput of the following program?

No Comments, Java Facts, by Daisy Williams.

class box { int height; int weight; box( int a, int b) { height=a; weight=b; System.out.println(height); System.out.println(weight); } } class…

Share

November 2nd, 2009

What is a constructor?

1 Comment, Java Facts, by Daisy Williams.

A constructor provides a convenient way to initialize a newly created object at the time of its creation. A constructor…

Share