Package (WRAP) Basic data type
Basic data types: Long, Int, double, float, Boolean, byte, etc. In Java, these are not objects, but pure data.
If you package the basic data type into an object, you can operate on this object as if you were using
1. Automatic packing and unpacking
Automatic Packing refers to encapsulating basic data types into class objects, and unpacking refers to splitting class objects into basic data types.
For example, the following code can be compiled after Java 5.0.
/
1) hierarchical structure of the Java Collection framework
2) use the common methods defined by the collection interface to operate on the set and linear table.
3) use the iterator interface to traverse the set
4) use the enhanced for loop of JDK to
Java Testing System
First of all, I would like to thank you for your support, from the Java Test Question System 4-1 to the morning 4th.
Reads: 51525
Answer: 21879
Incorrect answer: 18037
Average precision: 54.7%
According to the feedback
The relationship between constructors during Java inheritance. Let's take a test to show you:
In inheritance, which of the following statements about constructor is false? () A. Subclass unconditionally inherits the non-argument constructor of the
Java obtains the names of all files in the folder.
1 import Java. io. file; 2 3 Public class getfoldfilenames {4 5/** 6*7 * @ author zdz8207 8 */9 public static void main (string [] ARGs) {10 getfilename (); 11} 12 13 public static void getfilename
Author: gnuhpcSource: http://www.cnblogs.com/gnuhpc/
The Readline () method of the bufferedreader object must handle java. Io. ioexception (exception ).
One row can be read at a time:
Import java. Io. filereader;Import java. Io. filewriter;Import
Author: gnuhpcSource: http://www.cnblogs.com/gnuhpc/
JVM assigns the default value (default value) to the instance and static variables of the class, including every element in the array-without having to write the initialization value assignment
Author: gnuhpcSource: http://www.cnblogs.com/gnuhpc/
Various channels are defined. These channels indicate connections to entities (such as files and sockets) that can perform I/O operations; defines the Selector Used for multiplexing and
Author: gnuhpcSource: http://www.cnblogs.com/gnuhpc/
First, we will introduce several terms:
I18n:Is internationalization, international, because the first letter "I" and the end letter "N" has 18 characters, so i18n for short.
Author: gnuhpcSource: http://www.cnblogs.com/gnuhpc/
1. role:
It is used to load classes to JVM virtual machines.
2. loading process features:
When loader1 is requested to load the sample class, loader1 first delegates its parent loader to load the
Author: gnuhpcSource: http://www.cnblogs.com/gnuhpc/
See the program section below
Package test;Class {Public String f (a OBJ){Return ("");}}Class B extends {Public String F (B OBJ){Return ("C ");}Public String f (a OBJ){Return ("D ");}}
We use
For (INT I = 0; I
// List. Remove (list. Get (I ));
}
When performing iterative traversal on a map and deleting some key-value pairs that meet the conditionsJava. util. concurrentmodificationexception.Exception in thread "Main" Java. util.
Define an array:
1. Int [] arr = {90, 80, 70 ....}
2. Int [] arr = new int [10];
3. Int [] arr = new int [] {90, 80, 70 ,...}
In Java, when the = operation is used for the basic data type, the value is copied to the variable, but when it is used
The character string must be "" to include text. Each character in the string is constructed using Unicode characters.
String class:
Method
Description
Length ()
Returns the string length.
Equals ()
Determines
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