Answered Questions

  • How many ways we can create object ?

    Prashant Shingne

    • Sep 9th, 2016

    There are 4 ways to create object
    1.New Operator Employee emp = new Employee();
    2.Object.clone()
    3.class.forName()
    4.Deserilization readObject();

    Ashish

    • Jun 12th, 2014

    There are 7 ways to create object... 1 Using : new keyword 2 Using : Static Factory 3 Using : Instance Factory 4 Using : Factory Pattern 5 Using : De-serialization 6 Using : Clone Method 7 Using : new...