Java Series (1)----Java features

Source: Internet
Author: User

I. Key features of Java
1. Simplicity
2. Security
3. Portability
4. Object-oriented
5. Robustness
6. Multithreading
7. Architecture Neutrality
8. Interpretation of implementation
9. High Performance
10. Distributed
11. Dynamic Nature

two. J2SE 5 main features
1. Generic
2. Annotations (annotation)
3. Auto-boxing and automatic unpacking
4. Enumeration
5. Enhanced For-each style for loop
6. Variable length parameters
7. Static import
Span style= "FONT-SIZE:14PX;" >8. Formatting I/O
9. Concurrency utility

Three. Important features of J2SE 7
1.String can now control switch statements
2. Binary integer Literals
3. Underline under numeric literals
4. An extended try statement, called a try (try-with-resources) statement with resources, supports automatic resource management.
5. Type judgment when constructing a generic instance (<>)
6. Enhanced exception handling, a single catch clause captures two or more exceptions, and provides better type checking for the thrown exception.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.