Today is nothing to do, look at the memory model in Java and the principle of garbage collection mechanism. On this aspect of knowledge, there are already a lot of ready-made information on the Internet for our reference, but the knowledge is
2015-12-31A . Exception handling
Exception Overview (exception/error)
Exception handling mechanism
Catching exceptions using try{}catch ()
Inheritance system for exception classes ( Small exceptions are handled first , and large
The responsibility chain pattern is the behavior pattern of the object. Enables multiple objects to have the opportunity to process requests, thus avoiding direct coupling between the sender and the recipient of the request. Connect the objects as a
I think concurrency is broadly divided into two situations1, multiple threads or processes accessing public resources, such as 123062, multiple threads access the same instance variable, such as Tomcat multiple request threads access the same
In applications, we often need a constant file to store shared constants that are referenced in multiple places. In designing the application, I also encountered a similar situation, many places need a variety of constants.I'm sure I need a separate
Yesterday, I encountered a programming question about the substitution of character contents in a string, the topic is as follows:Implement a function that replaces a space in a string with "%20". For example, when the string is we are Happy. The
Service side:1, CalculatorPackage ws;public class Calculator {public int Add (int a, int b) {return (A + B);}public int subtract (int a, int b) {Return (A-B);}public int multiply (int a, int b) {Return (A * b);}public int divide (int a, int b)
1. If the parameter is the basic data type (int, long, etc.), the value is passed. The method internally changes the parameter value, and the external value is unchanged.2. If the parameter is an object type, pass the address. The method internally
A brief analysis of final keywords in JavaWhen it comes to the final keyword, it's probably a lot of people who are not unfamiliar with the final keyword when using anonymous internal classes. In addition, the string class in Java is a final class,
Multithreading can satisfy the program ape to write a very efficient program to achieve the purpose of fully utilizing the CPU, due to the spare time of the CPU can be kept to a minimum. The key to effective use of multithreading is to understand
(a), stack, heap1. Register: The fastest storage area, which is allocated by the compiler according to the requirements, we can not control in the program.2. Stack: A reference to a basic type of variable data and an object, but the object itself is
/** Creating a file* Two solid in File (File.separator (\), file.pathseparator (;))* It is possible to use \ to split directly under Windows.* But under Linux it's not.* So, to make our code cross-platform, more robust, so, everyone adopt these two
This class is used to parse the page that parses the picture through a picture of what the link isPackage util;Import Java.awt.Graphics2D;Import Java.awt.geom.AffineTransform;Import Java.awt.image.BufferedImage;Import
Package-info.javafor programmers who often use external packages, they should be familiar with strangers. Because programmers who are not specialized in developing packages seldom need to pay attention to it, and often see him in other packages, the
Image Display and uploading from Winform client to Java Server
Image uploading has mature components in JavaWeb, so it corresponds to the image display and uploading from Winform (C # rich client component) client to Java Server, in fact, there is
Java floating-point formatting and java floating-point formattingOverview
This section describes how to format floating point decimals Based on Java.Body
In Java, the class used to format decimals is java. text. DecimalFormat. For example, you can
Common java testing frameworks1. Common Unit testing frameworks junit4 and TestNG
You can use the annotation @ Before @ After @ BeforeClass @ AfterClass to initialize and end methods and classes respectively.TestNG example:
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