Alibabacloud.com offers a wide variety of articles about basic java interview questions and answers, easily find your basic java interview questions and answers information here online.
Multithreading and concurrency issues are one of the questions that interviewers prefer to ask in a Java technology interview. Here, the most important questions are listed from the interview point of view, but you should still have a solid grasp of
Java Multithreaded interview questions
1. What is the difference between processes and threads?
A process is a stand-alone (self contained) operating environment that can be viewed as a program or an application. A thread is a task that is performed in a process. The Java Runtime environment is a single process that
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
Php programmer interview questions and answers (Basic theory)
This article introduces an interview question for php programmers, with detailed answers. it is a basic theoretica
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
PHP classic interview questions (Basic I) with answers. Interview and written examination are often indispensable for job hunting and recruitment. as a php programmer, more or less will have similar experiences. The following are the PHP
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
problem is if the elements in the collection, this will bring some errors, some unpredictable errors, So it is forbidden to do so in collection.29th, when an object is passed as a parameter to a method, this method can change the properties of the object and return the changed result, so is this a value pass or a reference pass?Reference passing, there is no doubt that object passing can only be a reference. You can change the content of the reference, but not change the reference itself.30th,
below is a list of 125 basic C # interview questions. These interview questions are simple and straightforward, covering the most basic concepts of C #, mostly related to object-oriented concepts. So if you're preparing a C #
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
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 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
, 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 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.