1, Classpath is to save the location of the. class file, provide the first place to run the Java command, if "." is added, the query will be prioritized in the current directory; "." Put it in the backPrioritized query settings for the directory. No
Simple Chat DemoSimple chat using the TCP protocol (very simple)Thought: Using 2 threads, one thread is used to receive messages, and the other thread is used to send messages.Client Demo Code:1 Public classSenddemo {2 Public Static voidMain
If you just want to have Java running environment, then this step can be omitted, because after installation you will find that the PATH environment variable has increased C:\ProgramData\Oracle\Java\javapath, enter the path will find Java.exe. When
Variables in 1.java are categorized by data type class:Basic data TypesandReference Data Type(Arrays & Classes &interface)>basic data type integral type:byte(8bit) Short int(Default type)Long(add l/at the end of the valueL) floating point type:float
The jstack provided by the JDK can be well understood by name, and this tool is inseparable from the stack.Let's look at the command line for a set of JDK tools and use this command line to understand the most basic usageCan be understood, roughly
Java sockets, Socketserver, read and write, connection event monitoring, are all blocking-type. Java provides another non-blocking read-write, connection event listening mode--nio. This article briefly introduces a NIO socket primer example,
1 ImportJava.text.SimpleDateFormat; 2 ImportJava.util.Calendar; 3 Importjava.util.Date; 4 5 /** 6 * Created by Qing on 2017/3/28.7 */ 8 Public classAgeutils {9 //birthtimestring: "1994-11-14" according to the age of the month and dayTen
One, Java exceptions1, runtime exception (generally do not need to capture, divisor is 0)2, checked exception (null pointer), throws and throwIi. generics (public static t min (T t))1. Virtual machines do not have generic type objects-all objects
Recent data found Java sorting is very interesting, including the common eight kinds of representative sorting method; I think the function of sorting is important, but more important is the idea of sorting; so simply describe the common sort method
And check set: Using array to realize the ideaThe number stored in the array represents the collection to which it belongs. For example, Arr[4]==1; Representative 4 is the first group. If Arr[7]==1, the Representative 7 is also the first group.
Strong references, soft references, weak references, virtual references: Different reference types are mainly represented on the GC
Strong reference: If an object has a strong reference, it will not be reclaimed by the garbage collector. Even
Example:public class A {public String show (D obj) {return ("A and D"); Public String Show (a obj) {return ("A and a"); }}public Class B extends a{public String show (b obj) {return ("B and B"); Public String Show (A obj) {return ("B and A")
1. Summary of this week's study1.1 Summarize multiple streams and file-related content in the way you like (mind mapping or other).2. System-oriented integrated design-Library management system or shopping cartUse streams and files to transform your
When it comes to immutability, the first thing I think about is the string class. Previously learned a lot about atomicity and visibility issues: failure data, missing update operations, or inconsistent state of an object, all with multi-threaded
6. ZigZag ConversionThe string is "PAYPALISHIRING" written with a zigzag pattern on a given number of rows like this: (You may want to display this pattern In a fixed font for better legibility)P A H NA p L S i i GY i RAnd then read on
Java Basic Knowledge Note: This is the main mind map, is simply to say, will only expand the map of the Java keyword, and other later write 1, mind map2. java keyword
Key words
Describe
Abstract
Abstract methods,
Reflection of the 1.java language1 Packagecn.itcast_01;2 /*1. Get the construction method through reflection and use3 *//Get byte-code file Object4 Class C = class.forname ("Cn.itcast_01.Person");5 //Gets the specified constructor object (only
Evolution of distributed architecturesSystem Architecture Evolution Process-initial stage architectureThe initial stage of the small system applications, databases, files, and all the resources are commonly called lamp on a single
SpringCloud Study Notes (2) -- Config, springcloud Study Notes
Refer to Spring Cloud official documentation 4th ~ Chapter 10
The configurations in all examples in the official website are on
Attributes modified by static and transient in java cannot be serialized. statictransientRelated webpage: Java serialization advanced understanding of the future (verified) Class Student1package test; import java. io. serializable; public class
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