Search Interview Questions | Click here and help us by providing the answer. Click Correct / Improve and please let us know. |
|
|||
|
| ||||
| Interview Questions and Answers - Order By Newest | ||||
| ||||
| Ans. Layer 7 - Application Layer 6 - Presentation Layer 5 - Session Layer 4 - Transport Layer 3 - Network Layer 2 - Data Link Layer 1 - Physical | ||||
| ||||
| Ans. These annotations are used to create Spring beans automatically in the application context. The main stereotype annotation is @Component . @Controller: Which is used to create Spring beans at the controller layer. The stereotype annotations in spring are @Component, @Service, @Repository and @Controller | ||||
| ||||
| Ans. @ComponentScan in a Spring Application. With Spring, we use the @ComponentScan annotation along with the @Configuration annotation to specify the packages that we want to be scanned. @ComponentScan without arguments tells Spring to scan the current package and all of its sub-packages. | ||||
| ||||
| Ans. Through Reflection. | ||||
| ||||
| Ans. by using Cat command we can open and see the file content and as well as redirect the file content to another files pwd command shows us current working path of the server cat filename | tail -100 cat file name > filname1 | ||||
| ||||
| Ans. Instantiation by using: InitializingBean callback interface. Custom init() method from the bean configuration file. Aware interfaces for distinct actions. PostConstruct and PreDestroy annotations. Destruction. DisposableBean callback interface | ||||