Java trap and a basket --- top question set

zhaozj2021-02-16  121

Looking for a job to interview, there is an interview with a way to deal with the interview. Some of the following topics come from me and my friend's painful interview experience, including these issues include IBM, E * Trade, Siebel, Motorola, Sun, and other size companies. There is no reason for the interview, and it is unreasonable, and it is out of practice. Have written on paper, there is a face test you, and there is also a question in the phone, giving you the estimate of the IDE, so you can buy a lottery ticket, maybe it is specified. So if you have finished reading this article, please don't complain that these problems can be solved with IDE. You have to answer these questions in any case, if you have one or two questions in the interview, you will be able to be rejected. Of course, these are the basic questions of Java. Most people who have interviews will not ask you how Hibernate has more advanced, Eclipse's three components, or Command Design Pattern, they are all aged, and the favorite is basics. . Don't underestimate these foundations, my friend is first-class, and the results are planted under the basis of basics, and the high salary is not worthy. It's better to say less nonsense and start the topic. First, talk about the difference between Final, Finally, Finalize. It is most often asked. Second, anonymous inner class (anonymous internal class) can be extends other classes, can IMPLEMENTS INTERFACE (interface)? Third, Static Nested Class and Inner Class are different, the more better, The interview question is very general). The difference between fourth, & and &&. This is very small. Fifth, the difference between HashMap and HashTable. I often ask. Sixth, the difference between Collection and Collectes. Don't say one is a single one is a plural. Seventh, when do you use Assert. API-level technicians may ask this. Eighth, what is GC? Why have a GC? Foundation. Ninth, string s = new string ("xyz"); created a few String Object? Tenth, Math.Round (11.5) is equal to how much? Math.Round (-11.5) is equal? ​​Eleventh, Short S1 = 1; S1 = S1 1; What is wrong? SHORT S1 = 1; S1 = 1; What is wrong? The interview question is very variable, and it is necessary to prepare for abuse. 12. What is the difference between SLEEP () and WAIT ()? Making the favorite of threads. Thirteenth, there is no goto? It's a very thirteen problem. If you ask this question, I advise you still in this company. Fourteenth, there is a length () method in the array? String has a length () method? The difference between the fifteenth, overload and override. Can OVERLOADED methods change the type of return value? Often asked. Tenth, the elements in the set cannot be repeated, then what method is used to distinguish whether it is repeated? Is it == or equals ()? What is the difference? Seventest, give me one of you most often Runtime Exception. If you can't answer this, the interview will think that you don't have practical programming experience. Eighteenth, what is the difference between ERROR and EXCEPTION? Are the nineteenth, List, SET, MAP inherit from a Collection interface? Ten, what is the difference between Abstract Class and Interface?

转载请注明原文地址:https://www.9cbs.com/read-8393.html

New Post(0)