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
  • 30,630
  • 38
  • 174
  • 276

1 Answers1

4

No difference

Adam Rackis
  • 81,646
  • 52
  • 262
  • 388
RightSaidFred
  • 10,851
  • 32
  • 34