Java interview breakthrough one by one: OOP (object-oriented programming) selected interview 108 questions (with answers)

Behind the rapid development of Internet technology, countless engineers have used programming algorithms to knock out programs that implement our ideas. It can be said that our present life is surrounded by countless programming. Coupled with the prosperity of the Internet industry and higher welfare salaries, many people have become interested in programming and are willing to learn and change careers.

JavaOOP interview questions

1. What is B / S architecture? What is C / S architecture

2. What development platforms does Java have?

3. What is JDK? What is JRE?

4. What are the characteristics of Java language

5. The difference between object-oriented and process-oriented

6. What is a data structure?

7. What are the data structures of Java?

8. What is OOP?

9. The relationship between classes and objects?

10. There are several data types in Java

11. Naming rules for identifiers.

12. The role of instanceof keyword

13. What is implicit conversion and what is explicit conversion

14. Can the Char type be converted to an int type? Can it be converted to string type, can it be converted to double type

15. What is unpacking?

16. What are the packaging classes in Java?

17. What is included in a java class?

18. How do you solve the problem of errors in floating-point data operations?

19. What are the aspects of object-oriented features?

20. What is the difference between access modifiers public, private, protected, and not written (default)?

21. Is String the most basic data type?

22. flfloat f = 3.4; is it correct?

23. Short s1 = 1; s1 = s1 + 1; is it wrong? Short s1 = 1; s1 + = 1; is it wrong?

24. The difference between overloading and rewriting

25. The difference between equals and ==

36. The difference between ++ i and i ++

37. What is the structure of the program?

38. There are several ways to instantiate arrays?

39. Default values ​​of various data in Java

40. What are the commonly used Java packages?

41. What are the common methods of the Object class?

42. Is there a pointer in java?

43. Is value transfer by reference in java?

44. After instantiating the array, can I change the length of the array?

45. Assuming there are 5 elements in the array, what should I do if I reverse the order of the array?

46. ​​The difference between form participation and actual parameters

47. Can the constructor be called explicitly?

48. What is method overloading?

49. Can the construction method be rewritten? Can it be overloaded?

50. What is the difference between an inner class and a static inner class?

51. What is the role of the Static keyword?

52. What is the use of fifinal in java?

53. What is the difference between StringString StringBuffffffffer and StringBuilder?

54. Is String str = ”aaa” the same as String str = new String (“aaa”)?

55. What are the common methods of the math class in java?

56, What are the common methods of the String class?

57. Is inheritance in Java single inheritance or multiple inheritance?

58. What does Super and this mean?

59. What is the difference between ordinary class and abstract class?

60. What is an interface? Why do you need an interface?

61. What are the characteristics of the interface?

62, the difference between abstract classes and interfaces?

63, the role of Hashcode

64. Four references of Java, strong and weak

65. How many ways can Java create objects?

66. Is it possible that two unequal objects have the same hashcode

67. What is the difference between copy and shallow copy?

68, what are the uses of static?

69. Is there any difference between a = a + b and a + = b?

70、fifinal、fifinalize()、fifinally

71. Steps of JDBC operation

72. When using jdbc, how to prevent the problem of SQL injection.

73. How to call a stored procedure in JDBC

74. Do you understand the connection pool and what are the benefits of using the connection pool?

75. What data source technologies do you know? What are the benefits of using data sources?

76. The difference between & and &&

77. How to define static inner class

78. What is a member inner class

79. Difference between Static Nested Class and Inner Class

80. When to use assert

81. Does Java have goto?

82. Is there a length () method for arrays? Is there a length () method for Strings?

83. Use the most efficient method to calculate 2 times 8 equals several

84. Is flfloat type flfloat f = 3.4 correct?

85. What are the methods of sorting? Please list

86. The difference between static variables and instance variables?

87. Name some commonly used classes, packages, interfaces, please give 5 each

88. What is the use of a.hashCode ()? What is the relationship with a.equals (b)?

89. What are the compile-time constants in Java? What are the risks of using it?

90. How to jump out of the current multiple nested loops in Java?

91. Can the constructor be overridden?

92. The two objects have the same value (x.equals (y) == true), but they can have different hash codes. Is this sentence correct?

93. Can I inherit the String class?

94. When an object is passed as a parameter to a method, this method can change the properties of the object, and can return to change

The result after the conversion, then here is the value transfer or reference transfer?

95. What is the difference between String, StringBuilder and StringBuffffer?

96. The difference between Overload and Override. Can overloaded methods be zoned based on return type

Minute?

97. Can a Chinese character be stored in a char type variable, why?

98. What are the similarities and differences between abstract class and interface?

99. What is the difference between Static Nested Class and Inner Class?

100. Will there be a memory leak in Java, please describe briefly.

101. Can an abstract (abstract) method be static at the same time, or a local method?

102. Is it possible to issue a call to a non-static method from within a static method?

103. How to achieve object cloning?

104. Can the interface extend the interface? Can abstract classes implement interfaces? Abstract class

Can concrete classes be inherited?

105. Can a ".java" source file contain multiple classes (not inner classes)? What are the restrictions?

106. Can Anonymous Inner Class (anonymous inner class) inherit other classes? Is it possible to implement an interface?

107. Can an inner class refer to members of its containing class (outer class)? Are there any restrictions?

108. What are the uses of the fifinal keyword in Java?

Due to space limitations, the full answer of more than 20,000 words cannot be uploaded, only a screenshot of the answer is shown roughly, and friends in need are at the end of the article ...

Interview answer reference:

Java interview breakthrough one by one: OOP (object-oriented programming) selected interview 108 questions (with answers)Java interview breakthrough one by one: OOP (object-oriented programming) selected interview 108 questions (with answers)Java interview breakthrough one by one: OOP (object-oriented programming) selected interview 108 questions (with answers)
Due to space limitations, the full answer of more than 20,000 words cannot be uploaded. Only a screenshot of the answer is shown roughly. Friends in need:

Additional information:

Java advanced architecture interview knowledge points to organize
Java interview breakthrough one by one: OOP (object-oriented programming) selected interview 108 questions (with answers)
Java interview breakthrough one by one: OOP (object-oriented programming) selected interview 108 questions (with answers)
1,000 Internet Java engineer interview questions 485 pages of
Java interview breakthrough one by one: OOP (object-oriented programming) selected interview 108 questions (with answers)Java interview breakthrough one by one: OOP (object-oriented programming) selected interview 108 questions (with answers)
opportunities will only be reserved for those who are prepared, ready to go at any time.

Guess you like

Origin blog.51cto.com/14587687/2488835