title: How many ways to create object in java?
body: <p>I know use of "new" keyword and
  class.forName()
  But I got to know that we can create objects while writing definition of methods.
  like methodName(object creation);</p>