Alibabacloud.com offers a wide variety of articles about java interview questions for technical architect, easily find your java interview questions for technical architect information here online.
original types, and to use the standard placeholders that are used in the JDK.7. Write a generic program to implement LRU caching?This is the equivalent of an exercise for people who like Java programming. To give you a hint, linkedhashmap can be used to implement a fixed-size LRU cache, which moves the oldest key-value pairs out of the cache when the LRU cache is full. Linkedhashmap provides a method called Removeeldestentry (), which is used by the
, beanpostprocessor will process it and automatically create a proxy object for the bean that satisfies the matching rule.http://blog.csdn.net/itomge/article/details/8861268http://uule.iteye.com/blog/894055Spring Weaving Concept Weaving (Weaving): The process of applying a facet (Aspect) to a target object to create a new proxy object, which generally occurs in the following time:
compile time : When a class file is compiled, this requires a special compiler to do so, such as AspectJ's
Applicationobjectsupport. Description: Abstract class Applicationobjectsupport provides the Getapplicationcontext () method, which can be easily obtained to ApplicationContext. When spring initializes, the ApplicationContext object is injected through the Setapplicationcontext (Applicationcontextcontext) method of the abstract class.
inherits from the abstract class Webapplicationobjectsupport. Description: Similar to the above method, call Getwebapplicationcontext () to get Webapplicat
10 classic Java interview questions and classic java questions
1. How does Java's HashMap work?
HashMap is a key value for the data structure. Each key has a corresponding value. The key is to identify such a value.
Based on the hashing principle, HashMap stores and obtain
Java interview questions, java questions1/** 2 * write a function. It accepts an integer (assuming length) and returns an array. The length of the array is length, 3 * the content in the array is a random value ranging from 0 to (length-1) and cannot be repeated. 4*5 * If the length is 5, the array may be [, 4]. 6*7 *
Job-hopping is not frequent, but has participated in a lot of interviews (telephone interview, face to faces interview), large/small companies, Internet/traditional software company, batter (above his business, lack of actual combat experience, hang off), also face, fortunately not because of failure and discouraged, in the process of constantly check gaps, developed a practical, Trace, continuous improveme
Java interview questions, java questions
1. storage structures used by stacks and queues
Chain storage and sequential Storage
2. understanding of time complexity and space complexityTime Complexity: Number of statement executions in an algorithm, which is T (n). When n ch
establishes a dependency between the beans.Simply put, beans are objects that are initialized, assembled, and managed by the spring IOC container.The process of getting the Bean object, first loading the configuration file with resource and starting the IOC container, and then getting the bean object through the Getbean method, you can call his method.Scope of Spring Bean:There is only one shared bean instance in the Singleton:spring IOC container, which is generally the Singleton scope.Prototy
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.
requirements graphically in various phases of software development; IBMRational Rose is one of the many UML modeling tools in the requirements phase, often used in drawing examples, class diagrams, sequential graphs. 15. Describe the tool class that you exported, and indicate the maximum amount of data
POI (combining cell objects and background color applications)
Finally here also found some of Baidu Library interview
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
Common commandsFile Related:ls, DU/DF, Cat, VIUser Related:chown,chmod,useradd,groupaddNetwork Related:tcpdump, Ifcfg,route,netstatOthers:top, Find,rpm,tar,grep, etcJMS implementation, Queue, topic differencesProducer:destination.send (Message) destination:queueConsumer Mdb:onmessage QueueQueue:point to point (1-to-1)Topic Publish/subscribe (1 to many)Http://baike.baidu.com/subview/157103/12665866.htm?fr=aladdinhttp://blog.csdn.net/cloud_ll/article/details/1822804914.Spring BenefitsInverse of c
. (Critical resource: A resource that is shared by multiple threads) when the read-write thread acquires the lock frequency is not very different, generally adopt the mutex, if the read thread accesses the critical resource more frequently than the write thread, this time using read-write lock is more appropriate, read-write lock allows multiple read threads to access critical resources, read-write thread must mutually exclusive access The implementation of the read-write lock uses a mutex, so i
method.
The @Autowired belongs to spring, and the @Resource is the annotation of the JSR-250 standard, which belongs to the EE.
@Autowired is assembled by type by default, you must require that the dependent object must exist by default, and if you want to allow null values, you can set its Required property to False, for example: @Autowired (Required=false), If we want to use the name assembly can be used in conjunction with @qualifier annotations, as follows:
@Auto
Ref property.
byname: Automatically assembled by the parameter name, the spring container discovers that the bean's Autowire property is set to ByName in the configuration file, and then the container tries to match, assemble, and bean whose attributes have the same name.
bytype:: With automatic assembly of parameter types, the spring container discovers that the bean's Autowire property is set to Bytype in the configuration file, after which the container tries to match, assemble, and
/*
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
Transferred from: http://icyfenix.iteye.com/blog/715301The background of this post is tonight to see JE on this posting: http://www.iteye.com/topic/715256, the words written on impulse, if you can, can have other interviewers to analyze their interview questions asked, it may be a very meaningful thing. In the company as a technical interviewer for a few years, f
back. c) Consistency: Things are in a consistent state before and after they are executed D) Persistence: the operation of a thing with multiple data is permanent E) Isolation: When a thing is working on the data, another thing can not manipulate the data, that is, multiple concurrent things are isolated from each other. 28. Struts Work Flow A) The client sends a request to the servlet container b) The request passes through some column filtering by Filterdispatcher call, Filterdispatch through
timed out ( seconds )
Rollbackfor
Class[]
{}
Exception classes that need to be rolled back
Rollbackforclassname
String[]
{}
Exception class name that needs to be rolled back
Norollbackfor
Class[]
{}
Exception classes that do not need to be rolled back
Norollbackforclassname
String[]
{}
Exception class name that does not need to be rolled back
http://zhou137520.iteye.
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.