Read about java j2ee interview questions and answers, The latest news, videos, and discussion topics about java j2ee interview questions and answers from alibabacloud.com
), obtain the function value H (k), which is interpreted as the storage address of the node.
HashMap is similar to Hashtable, but HashMap is non-synchronous (unsynchronizded) and can take null as the key code.
4. Difference between forward and redirect
Forward: an internal transfer in servlet
Redirect: redirection. There are two requests. The first attributs/parameters will be lost in 2nd requests.
5. What is a Web container?
Implement the web Protocol application in the
difference between a green thread and a local thread in Java?
2) What is the difference between threads and processes?
3) What is context switching in multi-threading?
4) What is the difference between a deadlock and a live lock, the difference between a deadlock and a pie?
5) What is the thread scheduling algorithm used in Java?
6) What is thread scheduling in
Interview Questions and answers for 40 Java sets and 40 Java Sets
Provided by Beijing shangxuetang
1. JavaWhat is a collection framework? What are the advantages of a collection framework?
Each programming language has a set. The original
Original link: http://ifeve.com/java-multi-threading-concurrency-interview-questions-with-answers/Multithreading and concurrency issues are among the questions that interviewers prefer to ask in a Java technology
Java Collection related interview questions and answers Interview questions1.JavaWhat is a collection frame? What are some of the advantages of a collection framework? There are collections in each programming language, and the original
Regular Interview Questions and answers by a ribaba Java engineer, Baba java
1. Implementation of Spring AOP and IOC
Http://blog.csdn.net/tarena_lixy/article/details/7096114
Http://blog.csdn.net/kiss_vicente/article/details/6901295
Http://blog.csdn.net/it_man/article/details
115 Java Interview Questions and answers-ultimate list (I), 115 java
Object-Oriented Programming (OOP)
Java is a computer programming language that supports concurrency, class-based, and object-oriented. The advantages of object
need. Read the Java futuretask example to learn how to use it.7. What is the implementation of concurrent containers?Java collection classes are fast failures, which means that when a collection is changed and a thread iterates through the collection using Iterators, the next () method of the iterator throws a Concurrentmodificationexception exception.Concurrent containers support concurrent traversal and
, the next () method of the iterator throws a Concurrentmodificationexception exception.Concurrent containers support concurrent traversal and concurrent updates.The main classes are Concurrenthashmap, copyonwritearraylist and Copyonwritearrayset, read this article to understand How to avoid concurrentmodificationexception.8. What is the Executors class?Executors provides some tool methods for the Executor,executorservice,scheduledexecutorservice,threadfactory and callable classes.Executors can
keep the original base implementation. We can just inherit from it and rewrite the methods we need. Read the Java futuretask example to learn how to use it.7. What is the implementation of concurrent containers?Java collection classes are fast failures, which means that when a collection is changed and a thread iterates through the collection using Iterators, the next () method of the iterator throws a Con
solves this problem for us. After the online pool submits the callable task, a future object is returned, using which we can know the status of the callable task and get the result of the execution callable returned. The future provides a get () method so that we can wait for callable to end and get its execution results.Read this article to learn more about the callable,future example. 6. What is Futuretask?Futuretask is a fundamental implementation of the future, and we can use it with execut
The Java Collection framework is the foundation of the Java programming language and is an important knowledge point in the Java interview. Here, I've listed some important questions and answers about the
The Java Collection framework is the foundation of the Java programming language and is an important knowledge point in the Java interview. Here, I've listed some important questions and answers about the
choose an array instead of a ArrayList. If we want to traverse a map in order of insertion, we need to use TreeMap. If we don't want to repeat, we should use set.(2) Some collection classes allow you to specify the initial capacity, so if we can estimate the number of stored elements, we could use it to avoid re-hashing or resizing.(3) programming based on interfaces, rather than implementation-based programming, allows us to easily change the implementation later.(4) Always use type-safe gener
type as needed. For example, if you specify a size, we will choose an array instead of a ArrayList. If we want to traverse a map in order of insertion, we need to use TreeMap. If we don't want to repeat, we should use set.(2) Some collection classes allow you to specify the initial capacity, so if we can estimate the number of stored elements, we could use it to avoid re-hashing or resizing.(3) programming based on interfaces, rather than implementation-based programming, allows us to easily ch
The Java Collection framework is the foundation of the Java programming language and is an important knowledge point in the Java interview. Here, I've listed some important questions and answers about the
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.