What are the consequences of running a Java class file compiled in JDK 1.4.2 on JRE 1.6 or 1.5?
The Java SE 6 Compatibility page shows Jave SE 6 compatibility with Java SE 5.0. In addition, there is a link to Incompatibility in J2SE 5.0 (since version 1.4.2) . By reviewing the two documents, it should be possible to find out if there are any inconsistencies in programs written in JDK 1.4.2 and Java SE 6.
In terms of binary compatibility of Java class files, the Java SE 6 compatibility page has the following:
Java SE 6 J2SE 5.0, incompatibilities, . , , 5.0 JDK 6.
, , workmad3, Java, JDK, - . , Desty, API , .
Source Compatibilities:
API - , . javac , -nowarn . , , API, API JVMDI JVMPI.
Java SE 6 Performance White Paper.
Java- , . , 1.5, JRE 1.6. , , java-, JRE (, Java7)
: , 1.6 JRE (1.3, 1.4 ..).
Java . , JRE JRE . , , API JRE. , JRE 1.5 StringBuilder . , :
String s = "string1" + "string2";
:
String s = new StringBuilder("string1").append("string2").toString();
, NoClassDefFoundError StringBuilder.
, java. : " , " "OMG! ? (, , , , :)).
, , ( , ).
AFAIK, - java , , .
, 1.4 - , JVM ( , ).
. , 1.6, 1.3. i.e
input = "+ JOptionPane.showInputDialog(null," "+ (b?" encrypt ":" decrypt ") +". ", (b?" 4086 ":" 5317") );
,
input = "+ JOptionPane.showInputDialog(null," "+ (b?" encrypt ":" decrypt ") +".");
. inputdialog, , 1.3.
, 1.6 api 1.3 .
. , - , , Java API , , , , , . , , JDK 1.6 JRE 1.5, - JRE .
Source: https://habr.com/ru/post/1697325/More articles:Svn ignore update version - svnWhat are the possible reasons for the CGI :: Session :: CookieStore :: TamperedWithCookie exception on rails - securitySQL: internal join in alias column - sqlOptimize a SQL query on a large table - optimizationЯвляется ли определение функции Win32 API доступным в формате "базы данных" /XML? - databaseReportViewer - LocalReport - Merging Reports? - winformsSwitching the state of a menu item - javaHow to pass array parameter to TOAD - oracleHow can I initiate Core Animation on the animator proxy during a call to resizeSubviewsWithOldSize? - cocoahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1697330/how-to-add-usrsharejava-libs-to-webapps-classpath&usg=ALkJrhiSm_ZjsEdyLhOZPdg_02L4uJnI5gAll Articles