Java interview FAQ!

zhaozj2021-02-16  61

Java foundation:

1, scope public, protected, private, as well as the difference

2, the difference between ArrayList and Vector, the difference between Hashmap and HashTable

3, can the char type variable can be defined as a Chinese? Why?

4, many threads have several representations, what is it? Synchronize several implementation methods, what is it?

5. Inheriting the order of execution of the class is generally a choice question, ask you what will print out?

6, the internal class implementation?

7. How to optimize the garbage recovery mechanism?

8, FLOAT FLOAT F = 3.4 is it correct?

JSP

1. What built-in objects have jsp? What is the role?

2, what actions are there? What is the role?

3, the difference between the two implementations of INCLUDE?

4, what is the difference between the two jump methods? What is the difference?

Servlet

1, talk about the life cycle of servlet?

2, the SERVLET version (forgot what two versions are asked)?

JDBC, JDO

1, you may let you write a JDBC even Oracle program.

2, Class.Forname role? Why is it used?

3, what is JDO?

XML aspect

1, what parsing technology is there? Is there anything?

2. What are your aspects of XML technology in the project? How to implement it?

3. How to solve Chinese problems when using JDOM to resolve the Chinese problem? How to resolve?

EJB aspect

1. What are the contents of EJB2.0? What are the differences in EJB2.0 and EJB1.1?

MVC aspect

1, all parts of MVC have those technologies to achieve? How to implement?

Design mode:

1. Use the design mode in the development? What are the occasions?

JavaScript

1. How do I verify digital?

Corba

1. What is CORBA? What is the use?

The above is my summary, may not be all, because the time problem Time to find (9CBS / Java version) can understand, I hope to help friends who are looking for work, remind the pen test paper that is very accurate and high, may be reduced to your interview, and ask a lot less problem.

Of course, I still have to remind

Java trap and a basket --- top question set

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?

Second Eleventh, whether the method of Abstract can be Static, whether it can be Native at the same time, is it possible to be SYNCHRONIZED? 22, whether the interface can inherit the interface? Does the abstract class can implement (IMPLEMENTS) interface? Whether the abstract class is Can I inherit the physical class (Concrete Class)? On the second thirteenth, start a thread is Run () or start ()? 24. Is the constructor can be override? Second fifteenth, can you inherit the String class? 26. After a thread enters an SYNCHRONIZED method of an object, does other threads can enter this object? Second 17, there is a return statement in TRY {}, then follow this TRY The code in finally {} will not be executed, when is executed, before returbium or after? Twon 11, program: 2 multiplied 8 equal to a few? There is a C background Programmers especially like to ask this question. The second nine, the two object values ​​are the same (x.equals (y) == true), but there is a different Hash code, this sentence is not right? Thirty, when an object is passed as a parameter to After a method, this method can change the properties of this object and return the resulting result, then here is the value delivery or reference delivery? 31. If SWTICH can function on Byte, whether it can act on Long Is it possible to play on String? 32, programming questions: write a Singleton. This article is from http://blog.9cbs.net/yuanqingfei/Articles/38634.aspx

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

New Post(0)