I. Java basics:
1. Scope: public, protected, private, and no-write differences
Public classes in other packages can also be referenced. Protected is limited to classes in the same package, and private is only available to you. It is the same as protected when not writing.
2. Differences between arraylist and vector
Arraylist requires pre-defined size, and vector does not;
The vector method is synchronous and thread-safe. The arraylist method is not. Because thread synchronization must affect performance, arraylist has better performance than vector.
When an element in a vector or arraylist exceeds its initial size, the vector doubles its capacity, while
Arraylist only increases the size by 50%. In this way, arraylist is conducive to saving memory space.
As an object set, arraylist can be checked by the compiler but not by the vector. Therefore, if a vector is used to return an object set, the compiler cannot identify the error and can only detect it at runtime.
3. Differences between hashmap and hashtable
The default initialization capacity (default initial capacity) of hashmap and hashtable is 16, and hashtable is 11.
Hashtable is based on the obsolete dictionary class, And hashmap is an implementation of the map interface introduced by Java 1.2.
The hashtable method is synchronous, but the hashmap method is not.
4. Can a char variable be defined as a Chinese character? Why?
Yes. Because Chinese characters are also 16bit
5. What are multiple Representation Methods for multithreading?
Thread subclass and runnable interface
6. What are the implementation methods of synchronization?
One is to synchronize the method: Public synchronized methodname (...){....}
The other is to synchronize the object (this object cannot be a null value): synchronized (object ){.....}
7. The sequence of class execution during inheritance is generally multiple-choice questions. What will you print out?
8. How do I implement internal classes?
An internal class is a class declared inside another class. From Java 1.1, you can declare another class in one class, which is very similar to declaring fields and methods.
9. How to optimize the garbage collection mechanism?
If a variable is not used, the value is null.
10. Is float F = 3.4 correct?
No. Type mismatch. Change to float F = 3.4f.
Ii. jsp
1. What built-in objects does JSP have? What are their roles?
2. What actions does JSP have? What are their roles?
3. What are the differences between the two include methods?
4. What are the two jump methods? What is the difference?
Iii. servlet
1. What is the servlet lifecycle?
2. What are the differences between servlet versions?
4. JDBC and JDO
1. You may be asked to write a program that connects JDBC to Oracle.
2. What is the role of class. forname? Why?
3. What is JDO?
V. xml
1. What parsing technologies does XML have? What is the difference?
2. What aspects of XML technology have you used in your project? How to implement it?
3. How can I solve the Chinese problem when parsing XML files using JDOM? How to resolve it?
Vi. EJB
1. What does ejb2.0 have? Where are they used? What is the difference between ejb2.0 and ejb1.1?
Ejb2.0 defines three types of beans: Entity Bean, session bean, and message-driven bean.
VII. MVC
1. What technologies are used to implement MVC? How to implement it?
8. Design Model:
1. What design patterns are used in development? In what scenarios?
IX. Javascript
1. How to verify the number type?
VaR v = Document. All. Telephone. value;
If (isnan (V )){
Alert ("All numbers ");
}
10. CORBA
1. What is CORBA? What is the purpose?