Answered Questions

  • Memory Allocation

    What is the difference between below 2 statements? String s1=new String("abc");String s2="abc";How it will allocate in memory?

    gaurav

    • Jun 15th, 2012

    in String s1 = "Hello World"; // "Hello world" is a constant and it will be allocated in the string pool. all the variables refering to "Hello World" constant will refer to same memory location in th...

  • Primitive Types

    What happens when you add a primitive type (e.g. double) value to a collection?

    pdureja

    • Apr 6th, 2011

    Collection can hold Objects but not primitives. Prior to Java5, we need to wrap primitive using wrapper classes and in java 5 autoboxing do it automatically.Prior to java 5:xyzCollection.add(new Integer(10))In javaxyzCollection.add(10) //will do autoboxing 

  • Dependency injection

    What is dependency injection ?

    lwpro2

    • Mar 8th, 2011

    Spring terms of Inversion of Control is called dependency injection.Instead of creating dependency class B instances from Object A (A--> B), dependency injection is the design pattern suggesting the r...

  • What is ACID

    Answered by Jey on 2005-05-08 17:27:45: ACID is releated to transactions. It is an acronyam of Atomic, Consistent, Isolation and Durable. Transaction must following the above four properties to be a better one  Atomic: It means a transaction must execute all or nothing at all. Consistent: Consistency is a transactional characteristic that must be enforced by both the transactional system...

    Ritesh patni

    • Jul 25th, 2005

    Atomic-- should execute all or nothing...rollback come into picture Consistent--Consistency is a transactional characteristic that must be enforced by both the transactional system and the applic...

  • What is EJB

    sai.pappu

    • Sep 26th, 2008

    EJB is an server side component & its a WODA ( Write Once Deploy Any Where).EJB's run will under the control of EJB container.EJB is popular due to System level services provided by it.Developer can more concentrate on Business Logic due to services provided byu EJB.thanks.