1) Explain about spring applications framework?
Spring architecture helps you to manage your business objects. Implementation part of the spring is easy because it helps you to introduce it in the middle of the objects. This framework is easy to implement in testing conditions. This is used by many large vendors.
2) State some benefits and advantages of spring framework?
Some of the benefits which spring can offer you are as follows: -
• It is very beneficial for middle tier applications and it can be used in various run time environments.
• Various custom properties need not be used in applications.
• Cost can be reduced by reducing the programming to interface cost ratio.
• Applications built on spring framework are easy to test.
3) Explain about portability of spring?
Spring applications and framework are portable between different servers. This framework and applications are portable between many different servers such as Tomcat, Jetty, Web Logic, Web Sphere, Resin, Geronimo, etc. Environment features can be implemented without affecting portability.
4) Explain about Bean factory?
Spring is designed to work with Java Beans and this forms the core part of the Spring Framework. This is a generic factory and it lets users and developers to enable objects by name. This helps to manage relationships between objects.
5) Explain about the two models of the object which Bean Factory supports?
Two models of object which bean factory supports are: -
1) Single ton and prototype.
Singleton has one instance (shared) with an object and it is assigned a specific name which can be retrieved on lookup.
Prototype results in creation of an independent object.
6) Explain about Bean definition Reader interface?
Bean definition reader interface separates Bean factory implementations from metadata format. This is very useful if the application needs different metadata implementations. This framework or interface can be implemented in different ways.
7) State about the commonly used Bean Factory definitions?
The most commonly used bean factory definitions are as follows: -
1) XML bean factory and 2) DefaultListable beanfactory.
XMLbean factory is used to parse XML structure to define classes and properties of objects (named).
DefaultListablebeanfactory is useful to program bean factories and parse definitions.
8) Explain about inversion control behavior?
Inversion control behavior is obtained through bean factory concept. The best part about this container is it can be coded in a single line and has simple deployment steps. Inversion of control behavior is very useful to avoid heavy containers such as EJB.
9) Explain about dependency injection?
Dependency injection is used to remove dependence of explicit coding on container. It resembles to a form of IoC. Java methods are chiefly used to inject dependencies into an object. It is used to collaborate and configure values into an object.
10) Explain why an organization needs to implement spring framework?
Spring framework is essential because it touches important aspects such as
1) It is very useful to manage business objects
2) Spring architecture is very flexible it regains its architecture even when you can take some parts of it.
3) Testing part is very efficient and east to use.
4) Vendors recognized its importance and they are using it for enterprise Java development.
11) Explain about how to deploy applications using POJOs?
Spring helps you to develop components using POJOs. Spring Framework takes care of your need to build enterprise applications. Infrastructure of your application should be away from the business logic because it can improve the pace of your business logic changes. This is provided by Springs Framework.
12) Explain about auto wire support?
When auto wire is used as an optional attribute it reduces the volume of configuration. Auto wire should be used on the root element and this is used to activate auto wiring for all beans. If you would like to add an additional constructor it can be populates without the need to change configuration.
13) Explain the three different methods which are provided by the Namespace Handler interface?
The three different methods which are provided by the name space handler interface are: -
1) Init() is used to allow initialization for name space handler.
2) BeanDefinition parse is used when a Spring encounters a top level element.
3) BeanDefinitionHandler is used when spring encounters an attribute.
14) Explain about the different ways in which Spring JDBC can help you?
There are several ways in which a spring JDBC can help you they are: -
1) Connection leaks can be avoided.
2) Code can be focused on necessary SQL and it is very low.
3) Applications will never have to depend on RDBMS error specification handling.
4) You can easily implement DAO pattern without business logic.
15) Explain about exception wrapping?
Wrapping can be effectively done using spring. It makes the proprietary code to run in the ORM layer to a set of abstracted run time exceptions. Persistence exceptions can be easily handled. Handling of exceptions can be done very easily.
16) Explain about transaction management in spring?
Spring uses its own abstract for transaction management. It uses to deliver
1) Programmatic transaction management through SimpleJdbcTemplate.
2) Declarative transaction management is similar to EJB. It is compatible with superset of EJB CMT with some unique features.
17) Explain about integration of spring with AspectJ?
Spring integrates comfortably with AspectJ and this aspect makes it very poular. It makes it possible to include AspectJ aspects into Spring applications. Using Spring IoC container it is possible for dependency inject AspectJ. AspectJ is also used to inject non spring managed POJO using spring. It is uses XML and annotation driven pointcuts.
分享到:
相关推荐
从国外网站上下载的Java面试题。可以看看国外公司的Java面试常用题,以及如何用英文回答。
本资料“Java-Spring-Boot-Interview-Questions-and-Answers”集合了最受欢迎的Java及Spring Boot面试问题,帮助求职者准备相关面试。 一、Java基础 1. 讲解Java内存模型(JVM)的结构,包括堆内存、栈内存、方法区...
本文将基于标题"Java Interview Questions/Java面试题"和提供的标签"源码"、"工具"来探讨一些常见的Java面试知识点。 1. **Java语言基础** - 数据类型:了解基本数据类型及其内存占用,以及自动装箱拆箱原理。 - ...
【标题】"The-latest-Java-interview-questions.rar_The Interview" 提供的是一个包含最新Java面试问题的压缩文件,旨在帮助准备Java面试的求职者进行有效的复习和准备。 【描述】指出这个资源涵盖了各类Java面试...
"java-interview-questions-master.zip"这个压缩包很可能是包含了一系列Java面试常问问题和解答的资源,帮助求职者准备面试。 首先,Java基础知识是面试的起点,包括但不限于以下几点: 1. **Java语法**:熟悉基本...
"java_interview_questions.zip"这个压缩包中包含了一份名为"java_interview_questions.pdf"的文件,很可能是一个详细的Java面试问题大全。这份文档通常会涵盖各种Java核心技术、框架、设计模式以及最佳实践等主题。...
这份“Java-Interview-Questions-总结各种面试题”压缩包文件,很显然是一个集锦,包含了大量Java面试中可能会遇到的问题和解答,对于准备面试或提升自身技能的开发者来说,是一份宝贵的资源。 首先,让我们来看看...
根据提供的文件信息,以下是从标题、描述以及部分内容中提取并扩展出的相关IT知识点: ### J2EE面试问题:核心Java、EJB、JSP、Servlets、Struts、Hibernate、JDBC及相关信息 #### 一、核心Java ...
"java-lam-interview-questions-master.zip"这个压缩包包含了丰富的Java面试题,旨在帮助求职者准备Java相关的技术面试。以下是对这些面试题所涵盖的知识点的详细解释: 1. **基础语法**:面试通常会从Java的基础...
java开发大猫聊天室源码Spring面试问答 点击 :star: 如果你喜欢这个项目。 拉取请求受到高度赞赏。 关注我获取技术更新。 目录 不。 问题 弹簧芯 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 ...
对于互联网行业的面试,面试官可能还会关注Java在Web开发中的应用,如Servlet、JSP、Spring框架、Hibernate等ORM工具,以及微服务、分布式系统和云计算相关的技术,比如Docker、Kubernetes和AWS服务的使用。...
"InterviewQuestions:我收到的面试问题合集"是一个宝贵的资源,它包含了软件工程,尤其是Java相关的常见面试问题,帮助求职者准备应对可能遇到的挑战。这份资料可能是以InterviewQuestions-master命名的项目仓库,...
本资料“Java_Interview_Questions.rar_Help!_questionnaire”提供的Java面试问题PDF,可以帮助求职者准备Java相关的面试。以下是基于该文件名所暗示的Java面试常见问题及其详细解答。 1. **基础概念** - **Java的...
Java前后开发面试题,大厂进阶之路,基于JavaGuide、Cyc大佬、牛客...包含计算机网络知识、JavaSE、JVM、Spring、Springboot、SpringCloud、Mybatis、多线程并发、netty、MySQL、MongoDB、Elasticsearch、Redis、HBASE
"InterviewQuestions"这个主题通常涉及一系列旨在测试候选人对Java语言核心概念、框架、设计模式以及最佳实践的理解的问题。以下是一些可能在Java面试中出现的重要知识点: 1. **Java基础知识**:面试通常会从基础...
Spring MVC:控制器、模型、视图解析器、数据绑定。 以上只是Java面试中可能出现的部分重点问题,实际面试中还会涉及其他主题,如数据库操作、网络编程、并发编程、算法与数据结构等。准备面试时,不仅要理解和...
"frame"可能指的是编程框架,如Spring、Angular或者React,而"project-interview"则可能表示这是一个用于面试准备的项目,包含了对常见面试问题的解答和实践。"master"通常代表这是项目的主分支,意味着是最完整、...
"Mock-Interview-Questions:来自careercup、glassdoor和其他来源的预测"这个压缩包文件显然为求职者提供了宝贵的资源,帮助他们准备Java相关的面试。Careercup和Glassdoor是两个知名的职业发展平台,它们汇聚了大量...
"coding-interview-questions"项目提供了一组编码面试问题和对应的解答,帮助求职者准备这类挑战。以下是根据这个项目标题、描述以及标签(Java)提炼出的相关知识点: 1. **基础语法**:作为Java程序员,你需要...