Running a compiled language exists relative to an interpreted language

Source: Internet
Author: User

Running a compiled language is relative to the existence of an interpreted language, the compiled language first compiles the source code to generate machine language, and then the machine runs the Machine code (binary). It is a compiled language, such as C + +.

Compiled language: The program needs a special compilation process before execution, the program is compiled into machine language files, the runtime does not need to re-translate, directly using the results of the compilation is OK. The program executes efficiently, relies on the compiler, the cross-platform is inferior. such as C, C + +, Delphi and so on.

1  Packagecom.table;2 3 4 InterfaceInterfacea5 {6      Public FinalString interfacea = "Interfacea";7     Abstract voidShowstringa ();8 }9 InterfaceInterfacebextendsInterfaceaTen { One      Public FinalString interfaceb = "Interfaceb"; A     Abstract voidshowstringb (); - } - InterfaceInterfacecextendsInterfaceb the { -      Public FinalString INTERFACEC = "INTERFACEC"; -     Abstract voidSHOWSTRINGC (); - } +  Public classThirteentableImplementsInterfacea, Interfaceb, interfacec{ - @Override +      Public voidShowstringa () { A System.out.println (interfacea); at     } -   - @Override -      Public voidshowstringb () { - System.out.println (INTERFACEB); -     } in   - @Override to      Public voidSHOWSTRINGC () { + System.out.println (INTERFACEC); -     } the   *      Public Static voidMain (String []args) $     {Panax NotoginsengThirteentable Interface =Newthirteentable (); - Interface.showstringa (); the interface.showstringb (); + INTERFACE.SHOWSTRINGC (); A     } the}

Running a compiled language exists relative to an interpreted language

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.