SCJP Certification

Sun Certified Java Programmer Certification exam essentials

November 10th, 2009

What will be the ouput of the following program?

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 Box2
{
public static void main(String args[])
{
Box2 b2=new box();
}
}

Share

Back Top

Responses to “What will be the ouput of the following program?”

Comments (0) Trackbacks (0) Leave a comment Trackback url
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*