Java Fundamentals-Basic data types

JAVA8 types of basic data:4 Integral typeBYTE 1 byte 8bit range -128~127Short 2 byte 16bit range -2^15-1~2^15-1int 4 byte 32bit range -2^31-1~2^31-1Long 8 byte 64-bit range -2^63-1 ~2^63-12 floating-point numbersFloat 4 byte 32-bit range -2^15-1~2^15

Java-class and overloaded notes

Class:1, Properties: Description of the object, 2, Method: Object behavior, 3, construction method: For the strength of the object; 4. Inner class: Class declared in class; 5, Block: Divided into static block, instance block.Declaration of the class1

PROTOBUF Java Version installation steps

1, install MavenA. Download apache-maven-3.2.5, Link: http://mirrors.hust.edu.cn/apache//maven/maven-3/3.2.5/binaries/B. Extract to the specified directory: (I use the directory is)/users/zhoufei/documents/tools/apache-maven-3.2.5C. Open terminal,

Java Concurrent notes--singleton and double detection

Singleton mode allows a class to have only one instance of an object, reducing the time and space overhead of creating objects frequently. A typical singleton pattern code in single-threaded mode is as follows:①1 classsingleton{2 private

Java JVM virtual machine option Xms/xmx/permsize/maxpermsize

xms

These options from the JVM: Xms/xmx/permsize/maxpermsize can involve a number of problems, such as performance tuning.Description: The following reprint has not been practiced.Example of experience (reference):Sets the stack size for each thread.

Several ways to add events to Java (reproduced in Codebrother's article)

/** * Java Event Listener processing--Self class implementation ActionListener interface, as Event listener * * @author codebrother */class EventListener1 extends JFrame implements A Ctionlistener {private JButton btblue, Btdialog; Public

[Reading notes]java core technology

PS: have time to properly organize the format. Copy it from another editor.~~~~~~~~~~~~~~·2. Java Programming EnvironmentSoftware used by the JDK to develop Java;The JRE runs Java-used software;SE Java Platform for desktop or simple server

"Java Concurrency Programming"----(eight) thread pool usage

1, Thread starvation deadlockIn a thread pool, a deadlock can occur if the task relies on other tasks. In a single-threaded executor, if one task submits another task to the same executor and waits for the result of the submitted task, a deadlock is

The Add method of the Java list reports null pointer exceptions

List Actuallist=null;if (Matches.size ()!=0) { for (Searchmatchitem item:matches) { Actuallist.add (Item.getid ()); }}The above code throws a null pointer exception because the list was created without pointing to a referenceChange

Java Memory models and threads

Written in front: Unlike the memory models used by the mainstream programming language (c/C + +, etc.) to directly use physical hardware and operating systems, Java virtual machines Define a Java memory model in order to block memory access

Java reads a byte array from the memory stream

The binary data is received by the servlet in Java and then the binary data stream is read as a byte array. Start using:Byte[] bs = new byte[request.getcontentlength ()];Request.getinputstream (). read (BS);return BS;When the amount of data is small,

Java Learning Experience 02

/*** This is a digression .* a summer vacation did not hit the code, start some unfamiliar, this code is often hit* learned a stem: worship Yongzheng, anti- bug, Yongzheng tyranny eight elder brother (bug)*/Let's talk about the study, one weeks

Java Basic Learning-generics

One, generic method1 /**2 3 Custom generics: A custom generic can be understood as a placeholder for a data type, or as a variable that is a data type. 4 5 Generic methods:6 custom formats for generic methods: modifiers return value type function

Java Object Lock Learning

MechanismThe locking mechanism is used to solve the conflict problem of multi-threaded shared resources. Java associates an object lock for each object, usually dividing the locks into object locks and class locks, which are essentially object locks,

OpenFire Introduction to Java Applications

ObjectiveOpenFire is a chat server, like the QQ service. The essence is a socker servers.OpenFire communication protocol is XMPP, what is XMPP reference encyclopedia Https://baike.baidu.com/item/XMPP/3430617?fr=aladdinOpenFire three part of the

Spring Notes 2-annotations, spring2-Annotations

Spring Notes 2-annotations, spring2-Annotations I. Differences between attributes and member variables:Attribute: exposed. getxxx/setxxx is called an attribute;Member variable: private String name is a member variable or field. 2. Writing

Java-Socket,

Java-Socket, 1.java.net. Socket; Socket, which encapsulates the TCP communication protocol, can be used to link and communicate with the server application on the remote computer based on TCP.Instantiating a Socket is the process of establishing a

An internal error occurred duri ng: & quot; Initializing Java Tooling, duritooling

An internal error occurred duri ng: "Initializing Java Tooling, duritooling           Add: The above method does not work. My personal Solution The reason for this problem is that I replaced eclipse and used the previous working

Java core programming-IO stream Overview (-), javaio

Java core programming-IO stream Overview (-), javaio 1. Four most critical parent classes of java io streams ~ InputStream (input byte stream) ~ OutputStream (output byte stream) ~ Reader (input stream) ~ Writer (output streams) All the above

SpringMVC configuration web. xml file (list common configurations), springmvcweb. xml

SpringMVC configuration web. xml file (list common configurations), springmvcweb. xml Common web. xml configuration 1. Spring framework solves the string encoding problem: FilterCharacterEncodingFilter(Filter-name)2. Configure the listener in web.

Total Pages: 6206 1 .... 3294 3295 3296 3297 3298 .... 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.