Big Data first week summary

Source: Internet
Author: User

Finish the 4th day of it 18 Palm Java Foundation Course today:


Summary of key content:

path configuration, Java installation directory absolute path configuration to Java_home, dynamically remove the Java_home address,%java_home%/bin configuration to path, you can put to the front, this will be the fastest search.

Classpath configuration is Java Execution Java program Search order, generally configured as "%java_home%\lib\tools.jar;%java_home%\lib\dt.jar;." where "." Represents the current directory.

Classpath path can be specified directly when Java instruction executes

JAVA-CP Demo

Java-classpath Demo

From right to left, the first 1 is the same, other full counter, notice the overflow of the main data type , Byte is the representation that -128~127,-128 is obtained from 127-1, 127 of the binary is 01111111,-127 is 10000001, so-128 is 10000000,11111111 is -1,00000000 is 0, 0 is a positive number in the computer.

Conversion of the main data type, byte, short, int, long, float, double, upgrade is automatic conversion, there will be no precision missing, degraded conversion need to cast, but there will be a lack of precision.

The static method can only access variables in the call static

Operation

Short S = 3;

s=s+2;

s+=2 ;     

The second line of code will go wrong, because in the operation, S will be automatically promoted to int type. After operation or int type cannot be assigned to short type

The third line is OK, because the "+ =" operation automatically forces the conversion

<<: Equivalent to multiplying by 2

>>: Equivalent to a multiple of 2 divided by

Moving n is the power to multiply or divide by 2 by N times.

Basic syntax

Focus is for loop, double layer, three layers, general double is enough




Problems encountered:

How does the start batch start a path that contains spaces?

Start ""/affinity 3 "C:\Program Files (x86) \*"

Questions that need help

Not currently


Big Data first week summary

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.