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