Original Alibaba address: Alibaba, E * Trade, Siebel, Motorola, sun, and other large and small companies.
First, let's talk about the differences between final, finally, and finalize.
Most often asked.
Second, can anonymous inner class (anonymous
First, let's talk about the differences between final, finally, and finalize.
Final-modifier (keyword) If a class is declared as final, it means that it cannot generate a new subclass and cannot be inherited as a parent class. Therefore, a class
Java interview questions
Basic knowledge:1. simple principles and applications of the Exception Handling Mechanism in C ++ or Java.
When a Java program violates the Java Semantic Rules, the Java Virtual Machine will indicate an error as an exception.
It's a classic thing, and it's everywhere. First, write the original article:First, let's talk about the differences between final, finally, and finalize.
Final is used to declare attributes. Methods and classes indicate that attributes are
31. EJB includes (sessionbean, entitybean) indicating their lifecycle and how to manage transactions?Sessionbean: the lifecycle of stateless Session Bean is determined by the container. When the client sends a request to create a bean instance, the
HashTables provides a useful method to optimize application performance.
HashTables is no longer a new concept in the computer field. They are used to accelerate the processing speed of computers. They are processed using today's standards, which is
Some questions that are frequently asked during interviews with Java programmers on the Internet, although a little old, are still worth reading.
1. Let's talk about the differences between final, finally, and finalize.
Final? Modifier (keyword) If
If there is reprint, please indicate the source: http://blog.csdn.net/yihui823/article/details/6866801
It is not a literal translation. It adds your own understanding. If you have any questions, please let us know.
Based on version: findbugs version
Linear tables, linked lists, and hash tables are common data structures. During Java Development, JDK provides a series of corresponding classes for us to implement basic data structures. These classes are in the Java. util package. This article
First, let's talk about the differences between final, finally, and finalize.Final is used to declare attributes. Methods and classes indicate that attributes are unchangeable, methods cannot be overwritten, and classes cannot be inherited. Finally
Http://selives.blogbus.com/logs/27714366.html
Arraylist and vector use arrays to store data. The number of elements in the array is greater than that in the actual storage to add and insert elements. Both allow direct serial number index elements,
Arraylist and hashmap are asynchronous, while vector and hashtable are synchronous. Therefore, vector and hashtable are thread-safe, while arraylist and hashmap are not thread-safe. Because synchronization takes machine time, the execution
Above: Java programming ideas object set (array, list, set, MAP) 1
22. If you use a self-created class as the "key" of hashmap, you must overwrite both hashcode () and equals (). The reason is as follows:
1). the default hashcode () is inherited
Differences between vector and arraylistCollectionShortlist│ Invalid parameter list│ ├ Arraylist│ Vector│ Elastic StackSorted setMap├ Hashtable├ Hashmap└ Weakhashmap
Sometimes the vector is better; sometimes the arraylist is better; sometimes
Link to this article: prototype mode and various factory modes, as well as reflection
The various factory and prototype modes are not described in detail. There is only one small example.
The difference between the prototype and the factory mode
ExecuteNonQuery Method: Perform non-query SQL operations, including INSERT, delete, change updateExcutereader method: Execute Query, return DataReader, dr["column name" via DataReader object) You can get data, read one line at a time, and pass the
ArrayList and Vector use arrays to store data. The number of elements in the array is greater than that in the actual storage for adding and inserting elements. Both allow direct serial number index elements.
However, inserting data must be designed
Method
Category
Class default behavior
NativeClassType
EndStructure
DifferentType SimilarityAnd so on
LineIs it possible to overrideWrite
Application fieldJing
Object. Equals
Static Method
Call the Equals
It is actually a very simple problem, but it is ignored in a small place.
Java does not need to overload operators, so it will automatically mount to = when equal is written.
C # needs to display overload =
Instead of override Equals, You have to
I am used to ASP and always use sessions without definitions.
There is a problem with doing something small today. To put it simply:
1. Make a page for setting the session, and then automatically redirect to the page for displaying the session. This
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.