Java Learning Summary (i)

1. Overview 1.1 DOS command line-common commandsL dir: Lists the files and folders in the current directoryL MD: Create directoryL RD: Delete directoryL CD: Enter the specified directoryL CD. : Back to the top level directoryL cd/: Go back to the

Java Internal classes

Although the use of internal classes violates Java's simpler design concept than C + +, the so-called existence is reasonable, inner classes can be hidden from other classes in the same package, and internal class methods can access the data in the

Java Face question-multithreading

1. There are several ways to implement a thread in Java?There are two ways to implement multithreading, namely inheriting the thread class and implementing the Runnable interface.The difference between the two methods is that if your class has

Windows/linux the jar package and run it with Javac/java compilation

Windows/linux under the reference jar package, and Javac/java compiled to run, the need for friends can refer to the next.1> WindowsSuppose the jar to be referenced is placed in the D:/test directory with the name T1.jar, and the Java source file is

Java final domain

1 Public Final classThreestooges {2 3 4 /*5 * Stooges is a reference to the Set type, and final qualifies the reference member property stooges to be assigned an initial value and cannot be changed to refer to other similar objects6 *

Explanation of Serialversionuid in Java

Serialversionuid Effect:Serialization preserves the uniqueness of the object in order to maintain version compatibility, that is, deserialization while the version is being upgraded.There are two ways to build:One is the default 1L, for example:

Comparison of garbage collection mechanisms in Java and. Net

Same point:Have adopted the mechanism of generational.Both support concurrent GC.Have not adopted the reference counting method, but have adopted the tracking technology.. NET, you can pass the code GC. Collect () enforces that the CLR is garbage

Looking back, Java restudying (v): Character type of Java basic data type

Java, as a strongly typed language, means that each variable will have a specific type, there are 8 basic types of Java, there are 4 types of integers (byte, short, int, long), two floating-point types (float, double), 1 character types (char) and a

[Leetcode-java] Bitwise and of Numbers Range

Topic:Given a range [M, n] where 0 For example, given the range [5, 7], and you should return 4.Idea: To start a one-to-do tle, this is a very concise and good method on the Internet.It is easy to understand, because it is 2, not the same as the

Java Model2 User Login Simple instance

The previous blog on the Model1 and model2 a comparative summary, this blog on the idea of Model2 "instantiation", introduce a model2 landing example.The example is simple: the user enters the user name and password on the index.jsp page, submits to

JAVA Anonymous Objects

/*Anonymous object: An object that does not have a name using one of the anonymous objects: When the object method is called only once, we can use the anonymous object to complete, the comparison is simplified. How anonymous objects are used two: an

A large number of duplicate jar packages are present in the Java Project switch maven compilation

Recently the company's project is ready to use MAVEN, switching down is very simple, but the compilation found a very strange phenomenon, is not configured in the Pom jar package or the version of the jar is not configured to appear in the Lib

ArrayList in Java and its uses

1, what is ArrayList ArrayList is the legendary dynamic array, using MSDN to say, is the complex version of the array, It offers some of the following benefits: Dynamic increase and decrease elements implement the ICollection and IList interfaces

MAVEN's package dependency violation can cause Java.lang.IncompatibleClassChangeError errors

After the new API is online, the log file is not properly exported. View Tomcat's log file to find the following error message in - 7: com.sun.xml.ws.server.sei.EndpointMethodHandler invoke Severe:found Class

Java notes--Enumerations & annotations

1, the implementation of the custom enumeration class, for example:classseason{//1, provides the properties of the class, declared as Rivate final Private FinalString name; Private FinalString Desc; //2, property declared as final, initialized in

Create a Java development environment under Ubuntu

First, understand the JDKDifferent Java software and class libraries have different requirements for JDK, and before we know how to install Java, let's get a quick look at the differences between JRE, OPENJDK, and Oracle JDK.JRE (Java Runtime

java--bias Lock

cas

Java bias Lock (biased Locking) is a multithreaded optimization introduced in Java 6. It further improves the running performance of the program by eliminating the synchronization primitives in the case of non-competitive resources.Lightweight

Fetch and hibernatefetch of Hibernate

Fetch (conversion) and hibernatefetch of Hibernate Fetch, you can set fetch = "select" and fetch = "join"Use one-to-multiple examples:Fetch = "select" is to first query the objects at one end during the query, and then query the objects at multiple

Features of the JAVA sub-parent class and java features

Features of the JAVA sub-parent class and java features I. variables (attributes)This indicates the reference of the current object. this variable is first found in this class. If it is not found, it will be found in the parent class.Super is used

Notes on code cleansing: Comments

Notes on code cleansing: Comments Preface: I used to be convinced that "comments in a good code should take at least half of the size". I am also very proud to add javadoc to every function; I am sorry for the "bad habit" of writing code without

Total Pages: 6206 1 .... 3057 3058 3059 3060 3061 .... 6206 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.