Discover java spring framework interview questions, include the articles, news, trends, analysis and practical advice about java spring framework interview questions on alibabacloud.com
Summary and Induction of JAVA interview questions of Niuke Network (1), Niuke javaPreface
Today, I saw an article on explaining the Spring framework in the Nuggets. The article mentioned Niu Ke's interview
Java Multithreading and Concurrency basics interview questions and AnswersOriginal link: http://ifeve.com/java-multi-threading-concurrency-interview-questions-with-answers/Multithreading and concurrency issues are among the
Java's current heat has declined, but there are still a lot of people who learn java. Java's post is also a lot of infiltration. So, those classic Java knowledge points, you can see the problem can say 123? Come and have a look.The difference between 1.JDK and JRE What is the difference between 2.final, finally, and finalize?3. The difference between threads and processesHow does the HashMap in 4.
1 , what are the aspects of object-oriented features ? The object-oriented programming language has 4 main features: encapsulation, inheritance, abstraction, polymorphism, etc.Details:http://www.cnblogs.com/guweiwei/p/6599289.html2 , access modifiers public,private,protected, and what is the difference between not writing (the default)? Defaults to default when members of a class do not write access adornments. The default is equivalent to exposing (public) to other classes in the same packag
:
The above can solve the POST request garbled problem. There are two garbled methods for GET request Chinese parameter:Modify the Tomcat profile add code to match the project code as follows:
Another way to re-encode parameters:
StringuserName =newString (Request.getparamter ("UserName"). GetBytes ("Iso8859-1"), "Utf-8")
Iso8859-1 is the tomcat default encoding, and the Tomcat encoded content needs to be encoded by utf-8What is
1. What is the Spring framework?A: The Spring framework is a hierarchical Java EE application framework that is designed and released based on expert one-on-one Java ee. The
Spring, hibernate, struts interview questions, hibernatestruts
1. Is Action thread-safe? If there is no way to ensure the thread security of Action? If yes, explain the reasonNoDeclare local variables, or expand RequestProcessor to create an Action each time, or use scope = "prototype" in spring to manage
2. MVC: analy
The Java Collection framework is the foundation of the Java programming language and is an important knowledge point in the Java interview. Here, I've listed some important questions and answers about the
How does hibernate work and why?Principle:1. Read and parse the configuration file2. Read and parse the ing information and create sessionfactory3. Open sesssion4. Create transaction Transation5. Persistent operations6. Submit the transaction7. Disable session8. Disable sesstionfactory
Why:1. The code for JDBC database access is encapsulated, which greatly simplifies the tedious and repetitive code at the data access layer.
2. Hibernate is a mainstream persistence
/*
Interview questions: Final modification of local variables
Base type: The value of the base type cannot be changed.
Reference type: The address value of a reference type cannot be changed, but the value of the object's heap memory can be changed.
*/
Class Student {
int age = 10;
}
Class Finaltest {
public static void Main (string[] args) {
Local variables are basic data types
int x = 10;
x = 100;
SYS
1. How does hibernate work and why?Principle:1. Read and parse the configuration file (hibernate. cfg. XML) configuration Config = new configuration (). Configure ();
2. Read and parse the ing information and create sessionfactory factory = config. buildsessionfactory ();
3. Open sesssion session = factory. opensession ();
4. Create transaction transation Tx = session. begintransation ();
5. Persistent operations
6. Submit transactions such as Tx. Commit (); Tx. Roback (); Tx. colse ().
7. Disab
corresponding action, while the user's data to fill the corresponding actionform, and then the Actionform is distributed to action for processing.3.Action automatically calls the Excute method, in which the action takes the user-filled data from the Actionform and invokes the model (JavaBean) for processing, and then displays the results of the processing in a different view (JSP page)struts-config.xml:struts 's configuration file .It says that each user's request is handled and forwarded throu
7 Spring IOC (Dependency injection) way
Setter Method Injection
Constructor Method Injection
Factory method Injection (instance factory/static factory)
Automatic assembly (requires open configuration, not recommended )
http://blessht.iteye.com/blog/11621318 IOC Mode recommendations (constructor injection or setter method injection)
Both methods of dependency can be used, constructor injection and setter method i
Document directory
How does hibernate work and why?
How does hibernate delay loading?
In hibernate, how does one implement the relationship between classes? (For example, one-to-many and many-to-many relationships)
Let's talk about the cache mechanism of hibernate.
Hibernate query method
How to optimize hibernate?
Struts working mechanism? Why use struts?
How is the struts validate framework verified?
Let's talk about the struts design mode
1. General Questions1.1. What are the main features of different versions of the Spring Framework ? Version Feature
Spring 2.5 was released on 2007. This is the first version that supports annotations.
Spring 3.0 was released on 2009. It takes full advantage of the improvements in JAVA5 and provides suppor
Recently consider the issue of change work, so cast resume interview, interview 5 companies senior Java engineer, there are 4 gave me an offer, think of summing up the interview experience, convenient recently are looking for opportunities for youfirst, no pen questionDo not know whether or not the position is not met,
Interview Questions and answers for 40 Java sets and 40 Java Sets
Provided by Beijing shangxuetang
1. JavaWhat is a collection framework? What are the advantages of a collection framework?
Each programming language has a set. The
completed return Modelandview7, Handleradapter the controller execution results Modelandview returned to Dispatcherservlet8. Dispatcherservlet Pass Modelandview to Viewreslover view parser9, Viewreslover after parsing return to the specific view10. Dispatcherservlet the rendered view based on the view (populate the model data into the view).11. Dispatcherservlet Response UserFour, Spring MVC design AdvantagesFive, the main difference between SPRINGMV
Let's talk about some questions about the java programmer interview.
This blog post is intended for recent graduates and java programmers who have been working for about two or three years.
Why do I need to change jobs?
This is a broad question. Everyone has an answer.
For example:
The company is not well-treated,
The
(throughput) collector? The throughput collector uses a parallel version of the new generation garbage collector, which is used for medium-sized and large-scale data applications. The serial collector is sufficient for most small applications, which require about 100M of memory on modern processors. 41. In Java, when can objects be garbage collected? This object can be recycled when the object becomes inaccessible to applications that currently use t
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.