Rock won't announce the answer directly. A good memory is inferior to a bad pen, a bad pen is better than a hit code. A friend who needs an answer please do the test again and send me an email ([email protected]). Rock will respond to you within a week. Maybe your solution will give Rock a new insight.
question Set a
1. Prime numbers mean that there is no other factor than 1, try to write a method to determine whether an integer is a prime number:
2. Delete the number in the input string and compress the string, for example, the input string "abc123de4fg56" is processed and the output is "ABCDEFG".
3. Write a method Makearray is responsible for creating and returning an array of storage class Foo, requiring the creation of linkedlist or vectors to be stored according to the required parameters, but passing in a parameter of 1, creating a linkedlist, passing in a transfer of 2 o'clock, creating a vector.
1). Please write out this makearray method, which requires the use of generic expressions, and explains the benefits of using generics and not using generics in this method.
2). Write the client code that invokes the method Makearray: A calls the Makearray method to get the array, B joins the elements into the array, C iterates through the array, and outputs all the element foo.
3). Explains how linkedlist and vectors are different for storing foo.
4.java method parameter passing, under what circumstances is the value of the pass-through, what is the difference between these two ways?
5. Describe the relationship between classes/interfaces (inheritance?). Realize? It is best to use a class diagram: Vector, List, HashSet, LinkedList, Collection, Set.
6. Try to sort the input set of integers using the recursive method.
7. Enter a string, and the output string contains all the different characters and the number of times each of them appears in the character.
8.Spring control inversion/Dependency injection Ioc/di is used to solve the problem, give a concrete example of how control inversion solves this problem, how to use Spring to achieve this inversion of control.
What is the common value of the scope of the bean configuration in the 9.spring configuration, and what is the function?
10. The user-role model should use HIBERNATE/JPA to map the one to the Onel,one to Many,many to One,many to many, explain the inducements, and describe the structure of the associated database tables.
11.sql statements
Data table name: Filedetail,
field type Length field name
ID Int 4 self-increment ID
ANT varchar 12 calling number
Calldirect varchar 1 Call type (default 0, 0 inbound, 1 call)
time_in datetime 8 Time
Remark varchar 50 remarks
a). Write out add a count of SQL statements (ani:61457018, calldirect:0, Time_in:2008-1-15,remark:null)
b). Write a SQL statement that has more than 5 records in the same day as the calling number.
SQL statement Questions
A. Table name T_user
Field Name Type description
ID INT self-increment primary key
Name Verchar names
COMMENT VARCHAR Comment
Status INT State
Type INT, associated with the T_user_type table
Createtime datetime creation Time
B. Table name: T_user_type
Field Name Type description
ID INT self-increment primary key
Name VARCHAR names
a). Please write out an SQL statement that queries all users, the query condition is the record of the creation time before 2012//25, and is sorted by creation time (in reverse order).
b). Please write out an SQL statement that requires a list JOIN combination to query out all users with the type name "clerk".
13. Try to describe in detail the entire process from the browser input URL to the Web page in the browser, and say the following concepts in this process are described in the role:
A.http
b.html execution Position
c.jsp execution Position
D.javascript execution Position
E.css execution Position
F.servlet execution Position
G. TCP/IP
14. Describe the concept and role of thread synchronization synchronized.
15. Illustrate the role of annotation introduced after Java 1.5.
16. Illustrate the role of spring AOP.
17. How does it cause a Java memory leak.
Java face question Set