Java編譯器
外觀
Java 編譯器是 Java 程式語言的編譯器。Java 編譯器上捷看的生成檔案是包含 Java 位元組碼的 Java 類別檔案。Java 虛擬的機器載入 Java 類別檔案,並解說或者是隨時編譯 Java 位元組碼為機器碼。
` ` ` class secondmax { public static void main ( String args [ ] ) { int n , temp , fmax=零 , smax=零 ; Scanner sc=new Scanner ( System . in ) ; System . out . println ( " Enter how many numbers will you enter : " ) ; n=sc . nextInt ( ) ; for ( int i=零 ; i < n ; i + + ) { temp=sc . nextInt ( ) ; if ( i==零 ) { fmax=temp ; } else if ( temp > fmax ) { fmax=temp ; } }
System . out . println ( " First max : " + fmax ) ; System . out . println ( " Second max : " + smax ) ; } } ` ` `
外部連結
- Sun's OpenJDK javac page
- JSR 一百九十九 Java Compiler API Java Specification Request for invoking the Java compiler from a Java program
- Stephan Diehl , " A Formal Introduction to the Compilation of Java " , _ Software-Practice and Experience _ , Vol .二十八( 三 ) , pages 兩百九十七孵三百二十七 , March 一千九百九十八 .