This set of interview questions you can answer them how much?

Introduction: A few days ago to attend the interview, the interviewer follows me out of the set of interview questions, you may wish to use idle time to test your level of knowledge, the papers out of 150 points, you can answer how much out of it? Why not act quickly test it!


1. What is the operating results following the program? (10)

ReentrantLock lock new ReentantLock (Boolean. True);

try{

     lock.lock();

     ..//

}catch (Exception e){

     ..//

}finally{

    lock. unlock() ;

}


2, talk about what keyword synchronized mechanism work? (10)


3. What is the difference StringBuilder, StringBuffer is? (5)


4, in combination with the polymerization talk about what the difference is? (5)


5. What is the working principle SpringMVC? (Recommended diagram) (10) 


6. What are the advantages Talking SpringBoot is? Briefly on startup SpringBoot in. @SpringBootApplication which include several annotations? (10)


7, SQL optimization What is the principle? If not clear, the list of known optimization measures manner (5). (No less than three kinds)


8. What is the difference h1 title with two labels is? (5)


9, include conventional javascript object (5)


10, there are several styles position value? What is the impact on the layout? (5)

11, the parent class constructor, subclass constructor, as a subclass constructor new time, which class constructor call first? (5)


12. What is the result of the implementation of several programs of the following is (15)

A program:

Integer i=new Integer(123);

Integer i1=new Integer(123);

System.out.println(i1.equals(i));

 

Program II:

Integer i = 200;

Integer i1= new  Integer (200);
System. out. println(i1. equals(i));


Procedure 3:
Integer I = 200 is:

int i1=200;
System. out. println(i1==i) ;


Additional questions (60):
1, a number of: starting from 1, 1 is the first two, the third from the start of each one is equal to the sum of the first two. Please implement the code in Java

Example: 1 1 2 3 5 8 13


2, JDK1. 8 is the use of ConcurrentHashMap is the use of sub-arrays, or the use of an array of linked lists + + to achieve red-black tree? Simple talk about the difference


3. What javascript closures is? What is the mechanism bubbling event? How to stop event bubbling?


4. Strategy spring transaction propagation What? What spring default transaction strategy?


5. JDK8 Function, what is the difference BiFunction is?

 

These are the questions the entire surface, for this set of pen questions, the authors also specially invited Guo to do a simple test question in detail,

> - Click "interview Zhenti answer" Answers and parsing.

Guess you like

Origin www.cnblogs.com/xiexinxin/p/11791266.html