201671010110 2016-2017 2 "Java Programming"

Source: Internet
Author: User
Tags try catch

From school to now is the second week to learn the new language of Java, from the beginning of complete unfamiliar to now slowly understand its many basic knowledge. Take the identifier for it!   and C language has the same and different, the Java identifier is underlined by the letter, the most special is it also has the dollar sign, the number is composed, the first symbol can not be a number, the identifier can be used as the class name, variable name, method name, the name of the array name, etc., the keyword cannot do variable names, such as common class Public, try catch if float import void, and so on.

Java it is a strongly typed language, so each variable must declare one as a type. When declaring a variable, the type to which the variable belongs is before the variable name. In Java, the keyword final is used to indicate a constant, in which case the constant name is used in uppercase. The case requirements in Java are very strict. The keyword final can only assign a value once to a variable and cannot be changed once it is set. The constant result of a Boolean type is represented by true and false, in Java, where a Boolean value and an integer cannot be converted to each other. Conditional quotations have two types of IF statements and switch statements. For the third chapter of the textbook on a total of 60 pages of all the thorough understanding of the content has not been fully achieved, the teacher's courseware downloaded their own more to see more learning but still some difficulty, in the last semester of C language learning some basic knowledge is not strong enough to see and learn more, spend more time and energy in Java learning.

201671010110 2016-2017 2 "Java Programming"

Related Article

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.