Answered Questions

  • how many ways to create objects in java

    a naveenkumar

    • Aug 10th, 2011

    There are two ways:
    1. new operator
    2. new Instance() method. (Reflection API)

    Benzihar

    • Aug 7th, 2011

    1. Using new keyword This is the most common way to create an object in java. I read somewhere that almost 99% of objects are created in this way. MyObject object = new MyObject(); 2. Using Class.fo...