-daemon threads end, the program ends, the JVM ends, because the thread that needs to be guarded is gone, the daemon thread is not working, so the program ends and the program "Kill" the daemon thread. In layman's terms, the program will not end as long as a non-daemon thread exists in the program.In the Java language, the daemon thread generally has a lower priority, it is not provided only by the JVM, and the user sets the daemon itself when writing
language Features, object-oriented (encapsulation, inheritance, polymorphism), reflection, generics ... (2) Java Class Library: Core class library, such as Io/nio, network, Utils ... ; Security libraries, JDK, management, and massive third-party class libraries (3) Java Virtual machines: garbage collector, Runtime, dynamic compilation, accessibility, such as JFR
MODULE 1Compilation and operation of Java----------------------------Compilation: Javac-d bin Src\helloworld.java-D: Specify the storage path for the compiled class fileIf you call the class of another file in the class of this. java file, you need to compile the called class first, and then enterjavac-d Bin-cp bin Src\helloworld.javaor compile all. java files ja
Java NiO Tutorial (i) Core Overview
Java NIO consists of the following core components: Channels buffers Selectors
Although there are many other classes and components in Java NIO, it seems to me that Channel,buffer and Selector constitute the
asynchronously, then under what circumstances with the Execute or Submmit method? such as multi-threaded parallel execution, do not need to execute the results returned when the general use of the Execute method, if the need for multi-threading parallel computation, and all need to return the results of the time, need to Submmit method, of course, submmit generally blocking, If you want to retrieve the results at the time set, if you do not get the exception is to set the parameters through the
variable that is incremented to uniquely identify a rilrequest. This variable is used as token when it is sent, and tokens seen at the rild layer are the mserail.Event_end:[email protected]@[email protected]2) Send the steps:
The first step:
Generates a rilrequest that will generate m_serial (the requested token) and fill the request number, data, and result Message object into Rilrequest
Step Two:
Use Send to package rilrequest to the event_send message to Ril sender Handl
advantage. 1.2.8Explanatory typeThe Java interpreter can execute Java bytecode on any machine that has ported the interpreter . There are still some things that I don't understand for the time being (read the book later)1.3 Java applets and the InternetThe idea is simple: users download java bytecode from the Intern
); - returnJint (HWND); in } - return 0; to } + return 0; -}Johness_jcef3_util_awtutilCompile Build
Use or test
Copy the generated DLL into the Java project, configure LibraryPath in the project configuration, and write the test code. The test code is also simple: PackageJohness.jcef3.util;ImportJavax.swing.JFrame; Public classMain { Public Static voidMain (string[] args) {system.loadlibrary
"Java Core technology"Spent half a day and read carefully the Java core technology in the class part, feel the recent programming time a lot of vaguely, "This is not right, try." What's wrong? "The confusion of this sort has been defined earlier.
Main function must be in the main class
A class is a machine
Java is designed for consumer smart electronics, but smart home appliances are not as big as they were originally imagined. However, in the 90 's, the Internet has entered an explosive stage of development, and overnight, everyone is busy connecting their computers to the network. This time, met a big problem. People find that the Internet is connected to a variety of computers, such as IBM PCs, Macs, various servers and so on, not only the hardware C
Classes are loaded: Refers to reading the binary data of a class file into the runtime data area (the JVM is partitioned in memory)and creates a class object within the method area.Class Loader:Responsible for loading the compiled class file (bytecode file) into the JVM (Java Virtual machine).The class loader is mainly divided into the following types:1.Bootstrap class loader (boot class loader)Responsible for loading the
0000,Which means 128 is 1000 0000 in the computer,The integer.tohexstring parameter is int, and if you do not 0xff, then when a byte is converted to int,Since int is 32 bits, and byte has only 8 bits, this will be the complement.For example, the decimal number of the complement 11111111 is 1 to int when converted to 11111111111111111111111111111111 many 1 ah, hehe!That is 0xFFFFFFFF but this number is wrong, and this complement will cause errors. and 0xFF and after the high 24 bits will be clea
Java Multithreading Core technology comb (with source code)
Java Multithreading Core Technology comb the source code written in front Java multithreaded objects and variables concurrent access between threads communication lock usage Timer single case mode and multithreadi
Mastering Java Core Technology is the key to learning and mastering Java technology, with 17 points below to explain these Java core technologies.
No more inheritance in 1.Java, but instead of multiple inheritance with interfaces
)
Data type conversions
A solid arrow in the diagram indicates a loss-free conversion, and a dashed arrow indicates a conversion that may have a loss of precision. (e.g. 123 456 789 (int) is a large integer that contains more bits than can be expressed by the float type (a valid number 6~7 bit), and when this integer value is converted to float, the result is the same size, But the loss of a certain degree of accuracy (after the number of decimals can not be ac
the implementation of the interface class to realize the replacement system.Definition of the interface:1. The naming conventions and classes of the interfaces are the same.Example: public interface interface Name {}2. Constants can be defined in the interface, and variables cannot be defined. The properties in the interface are automatically modified with public static final. The constants in the interface must specify the initial values when they are defined.3. The methods involved in the int
thread is an object in Java, what are the properties of this object? Thread properties can be divided into static and dynamic properties, static here refers to the programmer is immutable, there is a JVM allocation, dynamic refers to the programmer can be customized, although the JVM gave the default property values. Static attributes: ID, etc., Dynamic properties: Name,priority,deamon,group,classloader, etc. So much for the basics, that's what it's
and implementation of interface Autowirecapablebeanfactory
Configurablelistablebeanfactory:beanfactory configuration checklist, specifying the green type and interface Defaultlistablebeanfactory: Combines all of the above functional groups to be processed after the bean is registered
2.XmlBeanDefinitionReader
From this diagram we can see how this class is packaged in a step-by-step way.
Tags: Get select instance expression oca important localhost share databaseThe Java Tag Library is divided into the above several, generally used is the core and functions, the next will explain the various, and common usage. The General tag library is used with the El expression, so the use of the El expression is also studied before learning the tag library. Expand after import The corresponding tag libr
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.