day02 Java Basics

Source: Internet
Author: User

1. The keywords in Java are lowercase.

2. Keywords in Java

3. Comments in Java are divided into: single-line comments, multiline comments, document comments

The document comment will be parsed by the Javadoc tool to generate a manual.

4. Constants in Java are divided into literal constants and custom constants.

Literal constants are also divided into string constants, integer constants, decimal constants, character constants, Boolean constants, and empty constants.

5, the relationship between the original code, the inverse code and the complement in the computer

6. Data type

7, type conversion surface questions

Interview Question 1

Interview Question 2

So: The output should be-126.

8. ' A '->97; ' in ASCII A '->65; ' 0 '->48.

day02 Java Basics

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.