-3

Normally a constructor will execute when will we create a object for a class. but my question, is it possible to create a object with out executing a constructor?

dsh
  • 12,037
  • 3
  • 33
  • 51
Sharan
  • 1
  • 1

1 Answers1

0

Without any byte code manipulation and dirty hacks, no matter what, your constructor always executes on Object creation. If you do not pass any args, it will surely invoke your default constructor.

You are wanting to live in a home, without building it ;)

Avinash A
  • 91
  • 5
  • `clone` and `ObjectInputStream#readObject` are not really dirty. At most slightly shady... – Thilo Oct 28 '15 at 12:33