Not accumulate Kuibu not even thousands of miles, here will continue to collect and update the Java Foundation related questions, currently has collected 100 questions.1. What is the B/s structure? What is the C/s architecture
b/S (browser/server), browser/server program
c/S (client/server), client/server, desktop applications2. What do you know about network protocols?HTTP: Hypertext Transfer ProtocolFTP: File Transfer ProtocolSMPT: Simp
and a concurrent collection?
Both synchronous and concurrent collections provide an appropriate set of thread-safe collections for multithreading and concurrency, although the concurrency collection is more extensible. Prior to Java1.5, programmers had only synchronized sets to use and would cause contention when multithreaded concurrency hindered the scalability of the system. JAVA5 introduces concurrent sets like Concurrenthashmap, which not only provide thread safety but also improve scalab
In this article we will discuss various types of face questions in a Java interview that will allow employers to test the candidate's Java and common object-oriented programming capabilities. The following chapters are divided into two, the first one will discuss object-oriented programming and its features, about Java
foundation, grasp the principle of good technology, and then to practice, so as to understand a technology, learning can not have!In addition, the interview process, to maintain self-confidence, will not be bold to say no, no good disgrace, not to say you really will not, perhaps forget, perhaps did not notice, remember the interview topic, back to their own supplementary information and related information, I believe you will be more and more calmly, to remember not for the interview and inter
foundation, grasp the principle of good technology, and then to practice, so as to understand a technology, learning can not have!In addition, the interview process, to maintain self-confidence, will not be bold to say no, no good disgrace, not to say you really will not, perhaps forget, perhaps did not notice, remember the interview topic, back to their own supplementary information and related information, I believe you will be more and more calmly, to remember not for the interview and inter
available processing power to enhance the performance of the program. A huge advantage of the fork join framework is that it uses a work-stealing algorithm that can be executed by a worker thread that is able to perform more tasks from other threads.What is the difference between calling the wait () and sleep () methods in Java Multi-threading?Wait and sleep in Java programs cause some form of pause, which
1. What is a Java virtual machine? Why is Java called a "platform-agnostic programming language"?A Java Virtual machine is a virtual machine process that can execute Java bytecode. The Java source file is compiled into a bytecode file that can be executed by the
) * * @author Abe properties: Face picture a deck of cards */public class Mahjongs {//private static image[] images = new image[36];p rivate mahjong[] mah = new mahjong[108];p rivate int sheet = 0;//static {//static loader//for (int i = 0; i 3. PrintingPackage com.lovo;/** * Mahjong * @author Abe * */public class Testmah {public static void main (string[] args) {mahjongs Mahj = New Mahjongs (); Mahjong one = Null;mahj.stuffle (); for (int i = 0; i Dul
,
Theme: Taobao Beijing special Java Face test questions (2011-12-31)
First side
1, talk about the project
Because I have been a product for several years, from the backstage to do the foreground, from the business development to achieve technology platform, so the entire product deployment map, b/S C/S, and then a layer of explanation.
b/S existing Web framework transformation, browser caching, c/s patc
Java face test-Basic Article Five
41, A.hashcode () what is the use. What is the relationship to A.equals (b).The Hashcode () method corresponds to the hash value of the integral type of the object. It is commonly used in hash based collection classes, such as Hashtable, HashMap, Linkedhashmap, and so on. It is particularly closely related to the Equals () method. According to the
, which gives me absolute control over the lock.
Multi-use sync class less wait and notifyFirst, Countdownlatch, Semaphore, Cyclicbarrier, and Exchanger, these synchronization classes simplify coding operations, and it is difficult to control complex control flows with wait and notify. Second, these classes are written and maintained by the best companies in the subsequent JDK and they will continue to be optimized and perfected, using these higher-level synchronization tools your program ca
. Differences between Java and C + +PointerThe Java language makes it impossible for programmers to find pointers to direct access to memory, and adds automatic memory management to effectively prevent pointer manipulation errors, such as system crashes caused by wild pointers, in the C + + language. But it is not that Java does not have pointers, the virtual mac
class redefined the same method in the parent class. The Override method must have a method name, a parameter list, and a return type that are identical. The Override method does not restrict access to the original method.does 6.Java support multiple inheritance? Java does not support multiple inheritance, and each class allows only one class to be inherited, but multiple interfaces can be implemented.7. W
The system has organized a bit of questions about Java, including Basic, Javaweb, frame, database, multi-threaded, concurrent articles, algorithms and so on, updated in succession. Other aspects such as the front end and so on the face of the questions are also in the collation, there will be.Note: At the end of the article there are benefits!1. String s = new string ("xyz"); how many stringobject have been
. Declaring variables as final ensures that they are not changed in use, and that the variable declared as final must be given the initial value at the time of declaration, whereas in subsequent references only the non-modifiable can be read. A method that is declared final can also be used only and cannot be overridden in a subclass. Finally: usually put in the back of the Try...catch code block, which means that the program regardless of normal execution or exception, the code as long as the J
implements the corresponding event listener interface and takes itself as an event listener.What are the advantages of the 70.Java Layout Manager over traditional window systems?Java uses the layout manager to place components on all Windows platforms in a consistent manner. Because the layout manager does not bind to the absolute size and location of the component, they are able to adapt to the specific p
int. Java does not, you must use integer instead.In Java, you can limit the parameter type of a template to a specific type.In C + +, type parameters can be instantiated, but Java is not supported.In Java, type parameters cannot be used with static methods (?). and variables, because they are shared by the instances s
2. How does Java cross-platform?SOURCE program (Java)--byte code (binary Class)--Class loader (load)-Bytecode verifier-interpreter (different versions, cross-platform root cause)---operating system platform (compiled and interpreted language) compile: Generate a new file. Explanation: No new files were generated.What is the implementation process of 3.java progra
the two tags, 115. What does the implied object mean? What are the hidden objects?JSP implied objects are some Java objects in the page, and the JSP container allows these Java objects to be used by developers. Developers can use them directly without a clear statement. JSP implicit objects are also called predefined variables. The following lists the implied objects in the JSP page:
Application
logic.(2) Pessimistic lock: Still like its name, for the thread security problem caused by concurrency, pessimistic locks believe that competition always occurs, so each time the operation of a resource,Will hold an exclusive lock, just like synchronized, regardless of 3,721, directly on the lock on the operation of resources.25. Collection Class: Hashmap,hashtableHashMap: Thread is not secureHashtable: Thread safety is similar to ConcurrenthashmapVector, Hashtable, Properties and Stack are all
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.