Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

code info

 
dariusz rusiecki
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which of the 4 statements is equivalent to the code below
Point p;
p = new Point(10, 10);

1 - Point p = new (10, 10);
2 - Point p = new Point(10, 10);
3 - Point p = Point(10, 10);
4 - Point p = new Point();
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic