Java Basic


  1. Which attribute is used to specify destroy method?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    destroy-method is used to specify the destruction method.


  1. Which attribute is used to specify initialization method?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    init-method is used to specify the initialization method.



  1. What is the attribute of java bean to specify scope of bean to have single instance per Spring IOC?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Singleton scope of bean specifies only one instance per spring IOC container. This is the default scope.


  1. Which of the following is not a feature of Beans?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Serialization is not the feature of Java Beans. Introspection, Customization, Events, Properties and Persistence are the features.



  1. Java Beans are extremely secured?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    JavaBeans do not add any security features to the Java platform.