Some of the face questions encountered in the job interview of Java development engineer

Source: Internet
Author: User
Tags one table redis

1.mysql Date (days) group BY
2.servlet life cycle
3. Different ways to define string = = and equals
4.js string defines a new method
5.public Private protected Default Difference
6. Multi-threaded scenarios and solutions
7. Talk about your knowledge of database affairs.
Understanding and usage of IOC AOP in 8.spring
9. About Spring's management of beans
10. How to use spring-managed beans in code
11.hibernate How to define relationships between tables
12.hibernate How to execute custom SQL
13. Please describe the memory model of the JVM
14.GC is what. Why would there be a GC.
15. Introduce yourself. (fixed program, must have)
16. Introduce the project you have done.
17.sql group sorting; sorting the records of the value of the field C from M to N; the students ' information is selected from three classes
18. Talk about the difference between Oracle and MySQL.
19.js to determine output results.
20.Iterator usage, instead of the remove operation in the For loop.
The reflection mechanism in 21.java, several ways of serializing Java serialize and the role of serialization.
22.hibernate database multiple primary key (joint primary key) how to handle
23. How do you use multithreading.
24. Object-oriented features.
25. Choice question
char c = "C";//This definition cannot be passed
Long i = 444;//Edit error
Long II = 444;//does not complain
byte a = 156;//edit error
String B = ' B ';//Edit Error


26.spring MVC writes a method that gets the JSON data from the Web page and returns the JSON data. Want to encrypt the data.
27. Judging output
var xx= "QQQQQQ";
var obj={
XX: "Wwwww",
property:{
XX: "Mmmmm",
Getxx:function () {
return this.xx;
}
}
}
Console.log (XX);
Console.log (obj.xx);
Console.log (obj.property.xx);


Console.log (Obj.property.getXX ());


Choice question:


Package com.hanji.thread;




public class Threadinterview extends Thread {
public void Start () {
for (int i = 0;i<10;i++) {
System.out.println (i);
}
}

public static void Main (string[] args) {
New Threadinterview (). run ();
}
}
A. Compiling an error
B. No error in editing, output 123456789
C. No error in editing, no output
D. Forgot.


Extend function to string


String.prototype.repeat=function (n) {
var str = "";
for (Var i=0;i<n;i++) {
Str+=this;
}
return str;
}


Console.log ("Hello". Repeat (3));


28. Index type, what index have you used
29.JVM loading class process, static variable, static code block
30.linux View Log Command
31. How to use the thread pool
32. Which thread APIs to use
33. Input three integers, print out from small to large
34.SVN git What's the difference with maven?
35. Isolation level of the transaction
36.spring One service calls another service transaction how to handle
37. How the transaction is propagated, the isolation (level) of the transaction.
38. Several ways to implement multithreading
39. Thread synchronization How do you deal with several locks between, how do you think about what kind of
40. Have you ever used a Dubbo distributed framework
41. Give a WSLD file, how do you operate it?
42. Have you ever learned about spring boot
43. Have you ever used MyBatis
43. Introduce the spring MVC you know
44.spring framework, if you want to initialize some data when the server starts
45. Do you want to log in again if you clear the cookie?
The three main instructions of 46.jsp
47. There is no use of the timer, how to use
48. What frameworks do you know
49 10,000 arraylist<user&gt of data; To remove UserID 2,600, how to do
50.hibernate There are several query methods, what are (3 kinds)

51. What database functions have you used, write complex SQL, where it feels complicated

52. Used Privod? How it is used. It is used in conjunction with other functions, and with whom.

53.hibernate cache and level two cache have you ever used Memchache

54. Use a database that has not been used in memory such as Redis

55.spring Cloud

The difference between get and load for 55.hibernate

56.
Which of the following statements is true ()
The abstract modifier can modify fields, methods, and classes
The body part of the abstract method must be wrapped in a pair of curly braces {}
Declaring abstract methods, curly braces are optional

Declaring an abstract method cannot write curly braces

57. Which of the following methods can cause a thread to enter another blocking state () from the running state.
Sleep ()
Yield ()
Wait ()

Start ()


58. What are the ways in which the IOC (inversion control) model can be implemented? Abcd
A: Dependency Injection (Dependency injection)
B:service Locator
C:java annotation

D:schema XML method

59. The following is a statement about configuring the Bean in Spring Init-method (C)
A) Init-method was executed at the front
B) Init-method After the method is constructed, dependent on the injection before execution
C) Init-method after dependency injection

D Init-method after dependency injection, the constructor executes before the

60. In the spring IOC core model, try to compare the same and different points of the three recommended dependency injection methods.

61. The following statements about the spring configuration file are incorrect (C).
A Spring defaults to reading the/web-inf/applicationcontext.xml configuration file
B The spring configuration file can be configured under the Classpath and can be renamed, but it needs to be specified in the Web.xml file
C Put the Applicationcontext.xml file in the SRC directory and spring can read

D You can specify the spring configuration file by <context-param><param-name> and <param-value> in Web.xml

61. What are the precautions for using the index?

62. Use the standard output redirect ">" symbol to write data to FILE01, to make the file file01 data (D).

A. Be moved B. be copied C. be printed D. Covered

63. Statement A: Within the connection, only those rows whose values satisfy the join conditions in the public column are displayed.

Statement B: For outer joins, the result set contains all rows from one table and a matching row from another table, and if a matching record is not found in the related table, the column appears null.

Statement C: In a cross connection between two tables, each row of the first table is connected to each row of the second table.

Statement d: A self-connection is a row in one table associated with another row in the same table.

Statement e: An automatic connection to the same name segment in two tables is called a natural connection, and it does not need to display the declaring join condition in the Select query. In the description of the above statement, the correct one is (D).

A.B, D, E and F

B. A, C, E and F

C. A, B, E and F

D. A, B, C, D, E

64. Implement a one-way list with Java, and write class test.

a few objects were created with a. String s = new string ("AB") + "C"

66.String s=new String ("abc" + "123");
As the code describes correctly: A, why
A, two string objects are created during the run
B. Two objects are created during the run
C. Create a String object during run time
D, create an object during run

66.

String str1 = "ABC";
String str2 = "A" + New String ("BC");
System.out.println ("STR1==STR2:" + (STR1==STR2));

67.synchronized and read-write locks are different. Read and Write locks why performance is a bit higher. I was told it was wrong to read it without locking it.
68. What is the framework of the authority to say
69.java three ways to load a database drive
70.spring What are the two ways to manage a transaction
71. Interface can inherit interface, abstract class can implement interface, abstract class can inherit Non-abstract class?
72.float f=3.4 correct?
73. Is the thread a shared stack?
74.spring single class is thread safe, why
@springboot application annotation equivalent to which annotation
76.char C can represent a Chinese character, why
77. What's the difference between redirection and request forwarding?
78. Principle of annotation
79. Can the constructor be overwritten?
80. Talking about bubble sort
Features of 81.set list map
82. Distributed Transactions
83. What if the user accesses the URL directly?
84.activemq What are the two modes of communication
85. Have you ever used Redis

86.SPRINGMVC Work Flow
87.angularjs

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.