Java Data Transformation + annotations

Source: Internet
Author: User

 PackageHQ;/*** Declaration of Class *@authorLenovo **/ Public classLeixingzhuanhuan {/*** Declaration of Method *@paramargs * * * JAVA DOC * * **/     Public Static voidMain (string[] args) {//Data type Conversions                inti=2;//4 bytes        LongJ=i;//8 Bytes: Implicit conversions//automatically converts from a small range to a large range of types.         Longh=i+J;                        System.out.println (h); I=(int) J;//Forced Conversions//forces a large conversion from a range into a small range of types.         Doublek=123.45; I=(intK//Cast: Loss of Precision! System.out.println (k);                                System.out.println (i); //int x= (int) "123" numeric value and string cannot be converted directly//Conversion Prerequisites: Numeric type compatible//one of the return values is a double type and the other output is doubleSystem.out.println (H +k); System.out.println ((100<99?123.3:124)); //comments. //Block Comment/*......*///Document Comments/** * * */... Java documentation can be generated by Javadoc        



                        

Java Data transformation + annotations

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.