Java Basics points (summarized on Bi Xiangdong video)

Source: Internet
Author: User

Package Name: All letters are lowercase.
Class name Interface name: When multiple words are composed, all words are capitalized in the first letter.
Variable name and function name: When multiple words are composed, the first letter is lowercase, and the other words are capitalized.
Constant name: All letters are capitalized, and when multiple words are composed, the words are underlined.

Categories of Constants in Java:
1, shaping constants, all integers.
2, decimal constant, all decimals.
3, Boolean constant, True,false.
4, character constant, a number of characters or symbols with ' ' logo.
5. A string constant that identifies one or more characters with "".
6, NULL constant, only null

Escape character: Change the meaning of the letter or symbol by \.
\ n: Line break
\b: backspace, equivalent to backspace key
\ r: Press ENTER, Windows system, the return key is represented by two characters \ r \ n
\ t: tab, equivalent to Tab key

Object-oriented three features: encapsulation, inheritance, polymorphism
Later development is actually to find objects to use, without objects to create an object.
Class: The description of things in real life.
Object: It is the entity that this kind of thing actually exists.

Java Basics points (summarized on Bi Xiangdong video)

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.