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...

  • JVM is platform independent/dependent? why?

    which one is faster in execution Array List or Array? why?

    Gaurav Singh

    • Mar 12th, 2018

    No, JVM is not platform independent. It is Platform dependent.

    Kailash Dofe

    • Jul 5th, 2017

    JVM is platform dependent, each OS has its own JVM version. What makes JAVA platform independent is this platform dependent JVM. This JVM helps the intermediately compiled JAVA code(bytecode) to run o...