Wuhan iSoftStone's Wuhan Future Science and Technology City Interview Questions (2018.5.7)

1. There are several basic types of java, which are? Is String a primitive type?

2. Write out several common linux commands and explain their functions

3. The difference between Integer and int

4. The difference between String and StringBuffer

5. Briefly introduce the life cycle of servlets. Will servlets be initialized multiple times?

6. Briefly introduce the characteristics and differences of ArrayList, LinkedList and Vector

7. Difference between abstract class and interface in java

8. The difference between action and Servlet in Struts2

9. A brief introduction to Spring's IOC and AOP

10. Describe your exception handling scheme in your project

11. The difference between Forward and redirect

12. What are the methods for implementing multi-threading in java and how to start a thread

13. There is a retrun statement in Try{}, so will the code in finally{} following this try be executed initially, when will it be executed, before or after return?

14. Write an oracle query faceting method or idea

15. What are the characteristics of left join, right join and inner join in SQL

16. Is the following code correct:

    Short i=1;

    i=i+1;

17. Calculate the print result of the following code:

    int k=0;

    for(int i=0;i<100;i++){

        k=k++;

    }

    System.out.print(k);

18. Indicate the result of running the following program:

    class A{

            static{

                System.out.print("1");

            }

            public A(){

                    System.out.print("2");

            }

    }

    class B extends A{

            static{

                System.out.print("a");

            }

            public A(){

                    System.out.print("b");

            }

    }

    public class Test{

            public static void main(String[] args){

                    A ab = new B();

                    ab = new B();

            }

    }

19. Write a java method, the function is to reverse a string, for example, "abcde" is executed to get "edcba"

20. Write a simple singleton class (Singleton)

database

21. Query the information of all employees and departments of the company, and sort them by the initials of their names in pinyin. please use sql

Employee表:

ID Name     DeptID
1     little king 1001
2 Zhang San 1002
3 Bailu  
4 Huang Akira  

Dept table:

DeptID DeptName
1001 Finance Department
1002 Technical Department
1003 Testing Division

22. The difference between delete from table and truncate table table

23. Benefits of perareStatement

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325902070&siteId=291194637