Objective
about winning in the interview of the Java series of basic collection and finishing, all the topics are carefully selected, very basic and test candidates for the basic skills, should say that the chances of being interviewed is very large. Here sorting out for everyone to take a look before the interview, all the topics collated from the network, there are some errors and clerical error, thanks to the reader's enthusiastic correction, in the statement has been corrected.
Finishing these questions stems from a discussion in the group and a few newly-entered small partners, many small partners talk about their interview experience and experience, many people initially despise the brush party, feel that the development skills are the most important, but in a short interview process frustrated. Instead of looking at the interview questions, but on-line questions too much but not all, find very inconvenient, more is to see and see, see 10 Way to see the title of unfamiliar, great waste of the valuable time during the job search.
Finally everybody hit it off, prepares each to interview the written examination as well as oneself has seen the good topic collects, organizes out lets the later small partner to trample some pits, therefore has these questions.
Directory
win in the interview of the Java Foundation (1)
1. Can I include more than one class (not an inner class) in a ". Java" source file? What are the restrictions?
2. Does Java have goto?
3, talk about the difference between & and &&.
4. How do I jump out of the current multiple nesting loops in Java?
5. Can the switch statement function on a byte, can it function on a long string?
6, short s1= 1; S1 = (s1+1 is the int type, and the left side of the equals sign is the short type, so a strong turn is required) 1 + 1; what's wrong? Short S1 = 1; S1 + = 1; what's wrong? (No mistake)
7. Can I store a Chinese character in char type?
8. Use the most efficient method to calculate 2 times 8.
9. When a variable is decorated with the final keyword, is the reference immutable or does the referenced object not change?
10, what is the difference between a static variable and an instance variable?
win in the interview of the Java Foundation (2)
11. Is it possible to make a call to a non-static method from within a static method?
12, the difference between integer and int
13, Math.Round (11.5) how much? Math.Round (-11.5) how much?
14. What is the difference between overload and override? Can the overloaded method change the type of the return value?
15. Can interfaces inherit interfaces? Can an abstract class implement (implements) interfaces? Can an abstract class inherit a concrete Class (Concreteclass)? Is there a static main method in the abstract class?
16. What is the mechanism for polymorphism in Java?
17. What is the difference between AbstractClass and interface syntax?
18, the abstract method can be static at the same time, whether it can be native at the same time, whether it can be synchronized at the same time?
19. Can an inner class reference a member of its containing class? Are there any restrictions?
20, String s = "Hello"; s = s + "world!"; After the execution of these two lines of code, did the content in the original string object change?
win in the interview Java Collection framework (3)
21. The difference between ArrayList and vectors
22. The difference between HashMap and Hashtable
23. What is the difference between list and map?
24. List,set, does the map inherit from the collection interface?
25, List, MAP, set three interfaces, access to elements, what are the characteristics of each?
26, say the arraylist,vector,linkedlist storage performance and characteristics
27. Remove duplicate elements from a vector set
28. The difference between collection and collections.
29, the set of elements can not be repeated, then what method to distinguish between repetition or not? = = or equals ()? What is the difference between them?
30. What are the collection classes you know? The Main method?
win in the interview of the Java Foundation (4)
31. String s = new string ("xyz"); how many stringobject have been created? Can I inherit the String class?
32. The difference between string and StringBuffer
33. The following statement creates a total of how many objects: String s= "a" + "B" + "C" + "D";
34, try {} has a return statement, then immediately after this try finally{} code will not be executed, when executed, before return or after?
35, final, finally, finalize the difference.
36. What are the similarities and differences between abnormal operation and general anomaly?
37. What is the difference between error and exception?
38. Simply talk about the simple principle and application of exception handling mechanism in Java.
39. What is the difference between heap and stack in Java?
40. Can I cast int to a variable of type byte? What happens if the value is greater than the range of type byte?
win in the interview of the Java Foundation (5)
41. What is the use of A.hashcode ()? What is the relationship with A.equals (b)?
42, the difference between the character stream and the byte stream
43. What is Java serialization and how do I implement Java serialization? Or, explain the role of the serializable interface.
44. Describe the principle mechanism of the JVM loading class file?
45. What is the difference between heap and stack?
46. What is GC? Why do you have a GC?
47, the advantages and principles of garbage collection. and consider 2 kinds of recycling mechanisms.
48. What is the basic principle of the garbage collector? Can the garbage collector reclaim memory right away? Is there any way to proactively notify a virtual machine for garbage collection?
49. What is the difference between throw and throws in Java?
Is there a memory leak in the 50,java, please describe it briefly.
win in the Interview Javaweb chapter (6)
51. Say a servlet's life cycle?
52. What is the difference between forward () and redirect () in the Servlet API?
53. What is the difference between request.getattribute () and Request.getparameter ()?
54,jsp the difference between static inclusions and dynamic inclusions
How do the various parts of 55,MVC have the technology to implement?
What are the built-in objects for 56,jsp? What are the roles?
57,http, the difference between the Get and post methods
58, what is a cookie? What is the difference between a session and a cookie?
What are the differences between 59,jsp and servlets, the common denominator, and the scope of their respective applications?
How do 60,tomcat containers create instances of servlet classes? What's the principle?
win in the Interview Javaweb chapter (7)
61,jdbc what are the basic steps to accessing a database?
62, talk about the difference between PreparedStatement and statement.
63, talk about the concept of transactions, the steps to handle transactions in JDBC programming.
64, the principle of database connection pooling. Why you use connection pooling.
What is the dirty reading of 65,JDBC? What kind of database isolation level prevents dirty reads?
66, what is phantom reading and which isolation level prevents phantom reading?
What is 67,jdbc's DriverManager for?
What is the difference between 68,execute,executequery,executeupdate?
69,sql query out of the results of the page show generally how to do?
What is the resultset of 70,JDBC?
win in the interview of the Java Framework (8)
71, talk about your understanding of struts.
72. Talk about your understanding of hibernate.
73, talk about your understanding of spring.
74, talk about the advantages and disadvantages of struts
What is the difference between 75,ibatis and hibernate?
76, in Hibernate multi-table query each table to fetch several fields, that is, the result set of the query does not have an entity class corresponding to how to solve?
77, introducing Hibernate's Level two cache
What is 78,JDO?
79,hibernate the difference between a one-to-many and many-to-two associations??
How is 80,hibernate delayed loading?
win in the interview of the Java Framework (9)
81, what are the benefits of using the spring framework?
What is the usual implementation of the ApplicationContext?
83, what is spring's dependency injection? What are the methods for dependency injection
84, what is spring beans?
85, explains the scope of several beans supported by spring.
86, explains the Bean's life cycle in the spring framework.
87, how to inject a Java collection in spring?
88, explain the different ways of automatic assembly.
What are the benefits of transaction management for the 89,spring framework?
90. What is the Java-based spring annotation configuration? Give some examples of annotations?
win in the interview Java Persistence Layer (TEN)
91, what is ORM?
is sessionfactory thread-safe in 92,hibernate? is the session thread-safe (can two threads share the same session)?
What do the 93,session Save (), update (), merge (), lock (), Saveorupdate (), and persist () methods do? What's the difference?
94, describes the process of loading entity objects session.
What is the difference between using # and writing placeholders in 95,mybatis?
96, explain the role of the MyBatis namespace (namespace).
97. What does dynamic SQL mean in MyBatis?
What are the shortcomings of 98,JDBC programming, and how does mybatis solve these problems?
What are the differences between 99,mybatis and hibernate?
100, simply say MyBatis's first-level cache and level two cache?
win in the Interview database chapter (one)
101, check the number of all students who have a high score of 1 of course 2.
102, the number of students with average scores greater than 60 points and average scores
103, check all students of the student number, name, number of courses selected, total
104, the number of teachers to inquire the surname "Zhang"
105, inquiry did not learn the "Zhang San" teacher class students of the school number, name
106, check the number and name of the students who have also studied course 1 and course 2.
107, the inquiry has learned the "John Doe" teacher all courses taught by all students of the school number, name
108, check the course number 1 of the results of the course number 2 is higher than the number of all students, the name of the student
109. Check the student's number and name of all the students who have achieved less than 60 points.
110, check at least one course with the student number 1 students learn the same class number and name of the students
win in the Interview database chapter (a)
111, the "SC" table "Harry" The results of the lessons are changed to the average performance of this course
112, inquiry and number 2 of the students to study the course of the exact same other student number and name
113, delete learning "Harry" the SC table record of the teacher class
114, insert some records into the SC table, these records require the following conditions:
The results of the students who do not have 3 grades will be the result of 2 of the average grade of all student's courses.
115, according to the flat average score from high to low display all students the following statistical report:
--School number, enterprise management, Marx, UML, Database, physics, course number, average score
116. Check the highest score and the lowest score of each section: show in the following form: Course number, highest score, lowest score
117, according to the average grades from low to high and the percentage of passing rate from high to low order
118. Check the percentage of average and pass rate for the following courses (shown with "1 lines"):
Enterprise Management (001), Marx (002), UML (003), Database (004)
119. Check the average of different courses taught by different teachers, from high to low display
120. Check the results of students who are between 3rd and 6th in the following courses:
--[Student id],[student name], Enterprise management, Marx, UML, database, average score
win in the interview of Java Multithreading (in)
121, what is a thread?
122, what is the difference between a thread and a process?
123, how do I implement threads in Java?
124,java keyword volatile and synchronized action and difference?
125, what are the different thread lifecycles?
126, what is your understanding of thread priorities?
127, what is the deadlock (Deadlock)? How do I analyze and avoid deadlocks?
128, what is thread safety? is vector a thread-safe class?
How do I stop a thread in a 129,java?
130, what is threadlocal?
What is the difference between 131,sleep (), suspend (), and wait ()?
132, what is a thread starved, what is a live lock?
133, what is the Java Timer class? How do I create a task with a specific time interval?
What is the difference between a synchronous collection in 134,java and a concurrent collection?
135, synchronization method and synchronization block, which is the better choice?
136, what is a thread pool? Why use it?
What is the difference between invokeandwait and Invokelater in 137,java?
138, what is the busy loop in multi-threading?
win in the interview Java generics (+)
139. What are generics in Java? What are the benefits of using generics?
How does the 140,java generics work? What is type erase? How does it work?
141, can you pass the list<string> to a method that accepts list<object> parameters?
142, how do I block a warning from a type that is not checked in Java?
What is the difference between the list<object> and the original type list in 143,java?
144, write a generic program to implement the LRU cache?
Can I use generics in 145,array?
146, how do I write a generic method that can accept generic parameters and return generic types?
What is the difference between a 147,c++ template and a Java generic?
win in the interview Javaweb
What are some of the 148,ajax and weaknesses?
What is the difference between a 149,ajax application and a traditional Web application?
What is the implementation process of 150,ajax?
151, briefly describe the three paradigms of the database?
What is the 152,java collection framework? What are some of the advantages of a collection framework?
What are the underlying interfaces of the 153,java collection framework?
154, what are the advantages of generics in a collection frame?
What is the difference between 155,enumeration and iterator interfaces?
What is the difference between 156,iterater and listiterator?
157, how do we sort a group of objects?
158, what are the best practices related to the Java collection framework?
159, what is a transaction?
160, tell me what problems you have encountered in your development? What's the deal?
Conclusion
Java Companion has also collected some good resume template, welcome to click the Library to get. Finally, I wish you all the small partners on the way to find a favorite company!
Java Surface Examination Questions Daquan