Java Small Knowledge Point record

Source: Internet
Author: User

1.mah.ceil () * Returns the smallest (closest to negative infinity) * {@code Double} value, is greater than or Equal to the * argument and are equal to a mathematical integer. Special cases: * If The argument value is already equal to a * mathematical integer and then the result is the same a s the * argument. If The argument is a NaN or an infinity or * positive zero or negative zero and then the result is the same as * the AR Gument. If The argument value is less than zero and greater than-1.0, then the result is negative zero.        Note * that the value of {@code Math.ceil (x)} is exactly the * value of {@code-math.floor (-X)}.2.i= i ++;3.        Integer a = 5;        Long B = 5L;        Double C = 5.0;        System.out.print (A.equals (b));        System.out.print (A==C);        byte d = (byte) 128; byte e = 128;//error4. Java is Unicode-encoded, with 2 bytes per character, both Chinese and English characters. The string s is decomposed into a byte array in its own encoding, and the byte array is re-encoded as a string in the encoding you want to output. Example: String newutf8str = new String (OLDGBKstr.getbytes ("GBK"), "UTF8"); Java virtual machines usually use UTF-16 to save a character resourcebundle can be based on the different local, selective reading with the local suffix of the properties file, in order to achieve internationalization purposes.

Java small knowledge point record

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.