Correct Answer: The Spring Beans are Java Objects that form the backbone of a Spring application They are instantiated, assembled, and managed by the Spring IoC container These beans are created with the configuration metadata that is supplied to the container Beans defined in spring framework are singleton beans There is an attribute in bean tag named "singleton" if specified true then bean becomes singleton and if set to false then the bean becomes a prototype bean By default it is set to true So, all the beans in spring framework are by default singleton beans
2. Which two method you need to implement for key Object in HashMap ?
Correct Answer: The Singleton design pattern ensures a class only has one instance, and provides a global point of access to it The class keeps track of its sole instance and ensures that no other instance can be created Singleton classes are appropriate for situations where it makes sense for a single object to provide access to a global resourceSeveral Cocoa framework classes are singletons They includeNSFileManager, NSWorkspace, NSApplication, and, in UIKit,UIApplication A process is limited to one instance of these classes When a client asks the class for an instance, it gets a shared instance, which is lazily created upon the first request
Correct Answer: SELECT-OPTIONS: specify or displayed on the selection screen for the user to enter values Parameters : dname like dept-dname Select-options: dname for dept-dname
6. Explain the difference between Template and Table ?
Correct Answer: A child selector is used when you want to match an element that is the child of another specific element The parent and child selectors are separated by spaces The following selector locates an unordered list element within a paragraph element and makes a text within that element bold p > ul {font-weight: bold;}
Correct Answer: 1 An injector is a service locator 2 It is used to retrieve object instances as defined by provider, instantiate types, invoke methods and load modules 3 There is a single injector per Angular application, it helps to look up an object instance by its name