1. PrefaceThis is a deep understanding of the Java Virtual Machine book, from the second chapter of the note. Because this book is more esoteric, this is the second time to look, need to record notes.2. Run-time data regionThe memory managed by the
1. Strong citation (Strongreference)Strong references are the most commonly used references. If an object has a strong reference, the garbage collector will never recycle it. As follows:Object o=new Object(); // 强引用When there is not enough memory
Class Name Object name =new class name ();Class Name Object name This explanation is to create a class name class reference variable named "Object name"New; The explanation for this is the instantiation of the objectThe explanation of the class
First, prefaceIn the background development process, the validation of parameters becomes an indispensable part of the development environment. For example, the parameter can not be null,email so must conform to the format of email, if manually make
When doing serial port communication, the data is sent in byte type.The normal byte range is-128-127, while Java's byte range is 0-255So when the byte of the data is converted to Java byte, it needs to do a & operation with 0xFF (11111111),
Kafka is a message middleware for passing messages between systems, and messages can be persisted!Can be considered as a queue model, but also can be seen as a producer consumption model;The simple producer consumer client code is as follows:
The Datagramchannel in Java NiO is a channel that can send and receive UDP packets. Because UDP is a non-connected network protocol, it cannot be read and written like other channels. It sends and receives a packet.Open DatagramchannelHere's how
Some of the test notes in JUNIT4 are: @BeforeClass, @Before, @Test, @After, @AfterClass1, which: @BeforeClass, @AfterClass is JUNIT4 in the new add in2. If run as--->junit Test, running the method containing the @test annotation is, then all
The order of data initialization in a class is one of the questions that the interviewer likes very much, this article uses an example to introduce the Java sub-class, the parent class static code block, the field, the non-static code block, the
What is serializationThe serialization (serialization) mechanism in Java can write the state information of an instance object into a byte stream, allowing it to be transmitted through a socket, or persisted to a database or file system, and then,
Java multi-thread implementation, java multi-thread implementation
1. What is a thread?
Thread: A single sequential control flow in the program. A relatively independent and schedulable execution unit in a process is the basic unit for Independent
Solve the com. sun. * package import error and the com. sun. Package import error.
Solve the com. sun. * package import ErrorHow to solve the import error com.sun.image.codec.jpeg:Com. sun. * is a restricted access API. By default, Eclipse sets the
Getting started with Struts2 (1) -- configuration file, getting started with struts2I. Preface
1. Understand the three frameworks
What is a framework?
A framework is a standard, a rule, and a rule that organizes technology.
What are the three
Java-linked list source code principle analysis, and build a queue through the consumer list, java-linked list
Here we will introduce the simplest linked list listing;
Let's take a look at the add () method:
public boolean add(E e) { linkLast(
Java entry-level books
After the project has been completed in the past few days, I have been idle. I want to write code and entertain myself. By the way, I want to study the background.Java Definition
① Object: an object is an instance of a class
Thinking logic of computer programs (36) and thinking 36
In the previous section, we introduced the basic concepts and principles of generics. In this section, we will continue to discuss generics and the wildcard concepts in generics. Wildcards
Java program to delete local files, java program implementation
Import java. io. File;
Public class Test {Public static void main (String args []) {Test t = new Test ();DelFolder ("d:/test ");System. out. println ("OK ");}
// Delete a folder//
JAVA class and object (8) ----- rewriting, java class ----- Rewriting
Rewrite: The subclass re-writes the implementation process of the methods allowed to access the parent class! Neither the return value nor the form parameter can be changed. That
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