turn from: leshuihttp: // blog.csdn.net/leshui/article/details/11951In the Java version saw this article, the author of the easy language analogy Java 32 models, has a very good inspiration, but unfortunately did not give specific meaning, I added:
Switch can only compare numeric or character or class objectsFirst look at the parentheses of switch, and place the variable you want to take out the value. When the value is removed, the program begins to compare it to the number or character set
JavaPerformance analysis toolsProfiler provides two completely different methods for profiling applicationsProgram. By default, you can useJprofiler GuiFor application performance analysis. The jprofiler GUI provides a button for you to start and
Java. util. Date: indicates the operation time:
Java. util. Date d1 = new java. util. Date (); // a time is created based on the current time.
Of course, you can also use another method: long times =System. currenttimemillis ();
Java. util. Date
/* When a form in a webpage is submitted using the POST method, the data content type is application/X-WWW-form-urlencoded. This type will: 1. character "a"-"Z", "a"-"Z", "0"-"9 ",". ","-"," * ", and" _ "are not encoded;2. Convert the space to
Open the command prompt (Win2000 or run the CMD command in the running box, Win98 is the DOS prompt), enter jar chelp, and press enter (if jdk1.1 or a later version already exists on your disk ), what do you see:
Usage: jar {ctxu} [vfm0mi]
Here, we use the memory analyzer tool of eclipse to achieve Intelligent Analysis convenience. Download and install the tool first.
We will equip the memory material below, starting from a simple one. Suppose there is a class that does not contain
A Discussion about JAVA anonymous internal classes.Basic Theory:-----------------------------------------------------JAVA internal class: the definition of an internal class is defined within another class.
The reason is:
1. An internal class object
Source: computer enthusiasts Author: Zhang Jian
Who knows how much sand stone is consumed by the tower of Babylon in tongtian? Who knows how many days and nights Rome has been built? The only thing we know is that there is no great wall in the
JUnit unit test (2) -- JUnit Basics
1. Basic Introduction
1. JUnit is a framework for testing code. The purpose of testing is to ensure that the Code is correct, rather than the code is correct.
2. The test class should not be put together with the
Maybe we often pay attention to the characteristics of each Set in practical applications or interviews. For example, the Set cannot store duplicate elements, and cannot maintain the insertion and size order, map sets store key-value pairs and so on.
A Brief Introduction to several memory regions of the jvm virtual machine:
Method Area: There is a memory area dedicated to storing loaded class information, constants, static variables, and method code in the java Virtual Machine,
Constant pool: a
[Java programming ideas, java programming ideasThinking in Java
The code I typed in this program is very stupid. I will try it. I don't have time to think so much, so I have to continue learning.
1 class Vnum {2 public static void main (String args
The first Spring mvc project created using Spring Tool Suite (STS) and Maven
I. Objectives
In this article, I will show you how to use Spring Frameworks and Maven build to create your first J2ee application.
II. Information
Maven is a java Project
Java quick tutorial and Java tutorial
Author: Vamei Source: http://www.cnblogs.com/vamei
Java is an object-oriented language. This language was actually quite young and was only available in 1995, produced by Sun. James Gosling led the Java
Learn 30 Basic concepts of JavaIn the course of learning Java, it is very important to master the basic concepts of Java. J2SE is the basis of Java, therefore, it is necessary to summarize the basic concepts so that you can better understand the
Date dNow = new Date (); // current timeDate dBefore = new Date ();
Calendar calendar = Calendar. getInstance (); // obtain the CalendarCalendar. setTime (dNow); // assign the current time to the calendarCalendar. add (Calendar. DAY_OF_MONTH,-1); //
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.