Today, I tried to build a Java Development Environment under Linux, and I will summarize the specific steps.
1. JDK InstallationRun the following command to install JDK (first create the/opt/Java directory)Tar-xvf
I. The class set framework is a set of classes and interfaces.
2. In the java. util package
3. It is mainly used to store and manage objects.
4. There are three main categories: Set, list, And ing.
Set)
List)
Map)
Inheritance and
I think there are three differences between string and stringbuffer:
(1) What does string mean when we create a String object str1 = "ABC"? In this case, a space is opened to store ABC and str1 points to it, now I "re-assign" str1 = "def" to str1.
Java GUI programming (graphic user interface) is implemented in its Abstract Window Toolkit (AWT), Java. AWT is a tool library of AWT, which supports a wide range of graphics, user interface components, and layout manager.
GUI is mainly used in
Package music;Import java. Io .*;
Import javax. Sound. sampled .*;
Public Class Music {Public static void main (string [] ARGs ){// Create an aeplaywave object instanceAeplaywave WAV = new aeplaywave ("D:/111.wav ");// Start this thread to play the
Document directory
Windows
OS X
Linux
Setting memory usage Configuration
By default, Aptana Studio allocates 128 M to start (-Xms128mParameter), and uses a maximum of 384 Mb (-Xmx384mParameter), of Java heap memory, which is usually enough for
I have been using eclipse some time ago. In the words of a certain teacher, it's awesome! Indeed, using eclipse to write code is a pleasure. Real-time compilation allows you to easily locate bugs based on the previous bug. Of course, such bugs are
1. MD5 encryption, which is often used to encrypt user names and passwords.
Protected byte [] encrypt (byte [] OBJ )...{Try ...{Messagedigest MD5 = messagedigest. getinstance ("MD5 ");Md5.update (OBJ );Return md5.digest ();} Catch
1. You need to be proficient in Object-Oriented Analysis and Design (OOA/OOD), involved models (gof, j2eedp), and integrated models. You should understand UML, especially class, object, interaction, and statediagrams.
2. You need to learn the basic
Public class test {Public static void main (string [] ARGs ){Date [] days = new date [5];Days [0] = new date (2007,5, 4 );Days [1] = new date (2007,7, 4 );Days [2] = new date (2007,5, 4 );Days [3] = new date (maid, 9 );Days [4] = new date (maid, 4 );
Comparison of JRE versions with Java
Many programs adopt JDK Development of Higher versions. These programs may use higher versions.
The features of the JDK version cannot be run on the JDK of a lower version or are displayed properly.
To determine
The following describes the frequently used collection classes. This section does not introduce how to use the collection classes. It only describes the usage and features of each collection class, then, by comparing different features of related
">>>" Logical right shift, add 0 to the left
Note that char, byte, and short are converted to int first when the logic is shifted to the right, and then logically shifted to the right based on the int.Shift of long type
Long shift is very strange.
1. Reference Type: The reference type is used on objects. An object can be pointed to by multiple references, but at the same time, each reference can only point to a unique object. If an object is pointed to by multiple references, any reference
The similarities between groovy and Java are as follows:3 +, 4 +, 6 +, 8 +, 10 +, 12 +, 13, 14, 15, 18 +, 20 +, 21, 22, 23, 28 +, 29 +, 30 +, 31 +, 32 +
+ It indicates that groovy not only covers Java syntax, but also enhancements.
The differences
During the Java program running process, many objects exist at the same time, but these objects disappear when the program ends or the JVM stops running. How can we save these objects so that they can be read into the memory next time? Or how to
Jdk6.0 introduces a new function of dynamic compilation, which allows you to dynamically write a class in the program and then compile it. After being compiled into a class file, you can load the dynamically compiled class into the memory by loading
Looking back at the original knowledge over the past few days, I found that many things were born if I did not organize my knowledge for a while. Today I just wanted to run a Java class under DOS, but it went wrong. exception in thread "Main" Java.
Spring framework[J2EE framework]Spring is a powerful framework that solves many common problems in J2EE development. Spring provides consistent methods for managing business objects and encourages injection of good habits of interface programming
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