First, Introduction: This article mainly collate interview topics encountered, and provide their own insights, will continue to update, if there are problems, can comment on the exchange, progress together.Second, the question and my opinion:1. How
when it comes to Java reading Excel files, it's much more of a poi or jxls, but it's time to read a book today. Mentioned in the use of Jdbcodbcdriver this driver class in the case of not relying on third-party libraries can also complete the
First, basic if structure1. FlowchartInput/OutputJudging and branchingProcess Line1.1 Simple if condition to judgeif ( expression ) { // expression is true , execute the code in {}}1.2 Simple if condition to judgeif ( expression ) {
One, variable
A variable is an identifying symbol in memory that is used to store data
Variable naming rules--"P35 page"
Must start with a letter, underscore, dollar signVariable, you can include a numberVariable, you cannot have
Exception descriptionIn the case of an unknown hostname when you format the Hadoop namenode-format command on HDFS, the exception information is as follows:Java code
[Shirdrn@localhost bin]$ Hadoop namenode-format
11/06/: + INFO namenode.
The error is as follows:Exceptioninthread "Main" java.lang.ClassNotFoundsExceptionIt is generally possible to determine that it is impossible to locate the main method, which should be when exporting the jar package with Maven without specifying the
Requirements:Using ternary operators to determine the parity of a numberImplementation code:/*** Use ternary operator to determine the parity of a number of user input*/ImportJava.util.Scanner; Public classOdd_even { Public Static voidMain (string[]
How to create a thread: 1. Inheriting the thread class(1) Define class, Inherit thread(2) The Void Run () method in the replication thread class (because the thread class is used to describe threads, the class defines a feature that stores the code
Overview (The content of this section is best written down, ready to use, casually can speak, readily can write):1,collection sets the top-level parent class, inheriting iterable (an iterative interface).2, Method: Add, AddAll, clear,First, take a
? Copyright NOTICE: This article is the original blogger article, reproduced please indicate the sourceDefined:-Provides a proxy for other objects to control access to this objectCompositionAbstract role: A business method that declares a real role
First, the Java Virtual Machine memory area How to divide 1, the Java Virtual Machine Memory region Division
Zone Name
function (use)
Type
Characteristics
Virtual machine stipulation Exception condition
In the discussion of how to weigh, put forward to build btree with direct buffer, think there should be a ready plan, so find a good thing:mapdb-mapdb:http://www.mapdb.org/Following from: Kotek.net:http://kotek.net/blog/3g_map3 billion items in Java
Original address: http://calvin1978.blogcn.com/articles/collection.htmlIn the shortest possible space, the features, implementations, and performance of all collections and concurrent collections are smoothed over. Suitable for all "proficient in
First, the Synchronization container class1. Issues with the synchronization container classThread container classes are thread-safe. However, it is necessary to protect the safety of an additional lock when it is carried out in accordance with the
Because in the company project occasionally encounter HashMap death cycle caused cpu100%, after restarting the problem disappears, interval time will recur. Here today to carefully analyze the problems caused by HashMap in the case of multithreading:
Java NiO OverviewJava NIO full name java new IO,Is the API provided in jdk1.4.The most basic differences between Java NiO and IO1. Reading and Writing methodsIo is stream-oriented and can only be moved in one direction, one input stream (inputstream)
Typical Java programming questions: 50 answers, and 50 java programming questions
There are 1, 2, 3, and 4 numbers. How many three numbers can be composed of different and non-repeated numbers? What is it?
Public class Example11 {Public static void
Configure jdk1.7 and myeclipsejdk1.7 in myEclipseStep 1: Download jdk1.7
: Http://download.csdn.net/download/chun201010/7824469Step 2: Install jdk1.7
Decompress the downloaded package to a jdk-7u17-windows-x64.exe file, and double-click it to run
Java Virtual Machine: JVM memory model, Java Virtual Machine jvm ModelI. JVM Memory Model Diagram
The JVM Runtime Area refers to the division and allocation of JVM memory space during the JVM Runtime. The following figure shows two images on 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service