4

Possible Duplicate:
new MyObject(); vs new MyObject;

What is the difference between

new Object

and

new Object()

Is there a reason to ever leave the parenthesis out or is that just something people do sometimes?

Community
  • 1
  • 1
Jacksonkr
  • 31,583
  • 39
  • 180
  • 284

1 Answers1

4

No difference

Adam Rackis
  • 82,527
  • 56
  • 270
  • 393
RightSaidFred
  • 11,209
  • 35
  • 35