The Java Collection Framework is the most frequently asked question of Java interviewing, and it is necessary to understand the powerful features of Java technology to master the set framework. Here are some practical questions, often asked in the core Java
Basic java exception knowledge and some interview questions
Java is an object-oriented design language, so exceptions are encapsulated into classes in java, and we only need to know how to handle exceptions,
Exception Overview
Exception: An exception occurs when the
-threaded access to shared resources, due to improper access, usually a thread locked a resource A, but also want to lock resource B, and in another thread, the lock resource B, but also to lock resource A to complete its own operations, two threads want the other's resources, Instead of releasing their own resources, two of threads are waiting for a situation that cannot be performed.Java Network Programming approximate process:UDP programmingSend side:1, create the Socket object constructor Da
Java Architects interview questions, how to become architectsOften interview some candidates, sorted out my interview using the topic, LU continued to organize a lot of problems, so each time to draw a part to ask. The answer will be gradually released in later articles.
B
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
ImportNew Note: This article is one of the Java interview series compiled by ImportNew. You can view all the Java interview series from here.
The common Interview Questions introduced in this article are about the overloading meth
The following content is the original Java surface of the online question set and the answer after a comprehensive revision of the responsible questions and answers, the original topic has a lot of repetitive topics and worthless topics, there are many reference answers is also wrong, modified Java surface Test set reference the latest version of the JDK, removed
inherit it. Subclass overwrites the finalize () method to sort system resources or perform other cleanup tasks. The finalize () method is called before the Garbage Collector deletes an object.
Second, can anonymous inner class (anonymous internal class) be extends (inherited) other classes, or implements (implemented) interface (Interface )?
An anonymous internal class is an internal class without a name. It cannot be extends (inherited) other classes, but an internal class can be used as an in
finalize () method to sort system resources or perform other cleanup tasks. The finalize () method is called before the Garbage Collector deletes an object.
Second, can anonymous inner class (anonymous internal class) be extends (inherited) other classes, or implements (implemented) interface (Interface )?
An anonymous internal class is an internal class without a name. It cannot be extends (inherited) other classes, but an internal class can be used as an interface and implemented by another i
The super. getClass method of Java interview questions is called. Today, I read a Java interview question from the Internet, and the result fell into the trap. I think this interview question is quite good, so I will share it with
This article includes a variety of tedious Java written/interview questions, some of which are easy to forget and occasionally updated. I also hope that you can leave a message below to post all kinds of tedious test and interview questions you have encountered or seen.J2EE
;. java.util Package: Java Utility Class Library Java.util package. In this package, Java provides some useful methods and data structures. For example, Java provides a date (Data) class, a calendar class to produce and get dates and times, a random number class that produces random numbers of various types, and a stack (stack), vector, bit set (Bitset), and a ha
Collector deletes an object.
13. Can anonymous inner class (anonymous internal class) be extends (inherited) other classes, or implements (implemented) interface (Interface )?
An anonymous internal class is an internal class without a name. It cannot be extends (inherited) other classes, but an internal class can be used as an interface and implemented by another internal class.
14. The difference between static nested class and inner class is that the more you say, the better (the more general
Controller: When the user clicks the Submit button in the Web page, the controller accepts the request and invokes the appropriate model to process the request. The corresponding view is then called according to the result of the processing to display the results of the processing.
MVC process: First the controller accepts the user's request, invokes the corresponding model for business processing, and returns the data to the controller. The controller invokes the corresponding view to
1. String S1 = ' 123 ';String s2 = new string ();2. The difference between two ways of implementing multithreadingInheriting the thread and implementing the Runnable interface3. Single-column design mode What's the difference between lazy and a hungry man? * * *Lazy style Features: lazy loading. Delayed loading in multi-threaded security problems, through the addition of synchronization to solve, plus synchronization efficiency is low, with a double-j
First, let's list these 32 questions. You can leave me alone and think about what it will do if the interview feels like.
First, let's talk about the differences between final, finally, and finalize.
Second, can anonymous inner class (anonymous internal class) be extends (inherited) other classes, or implements (implemented) interface (Interface )?
Third, the difference between static nested class and inner
) Select the correct collection 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 prog
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 generics to avoid classcastexception at run time.(5) Using the immutable classes provided by the JDK as key to t
Java Questions Answers
1. What is the difference between an applet and an application?
A Java application is made up of a main () method declared as public static void that accepts a string array argument, along with any other classes that main () CILS. it lives in the environment that the Host OS provides.
A Java a
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.