/* *java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 2 * *LicensedundertheApacheLicense,Version2.0(the"License"); *youmaynotusethisfileexceptincompliancewiththeLicense. *Youmayacopyoftheat * *http://www.apache.org/licenses/LICENSE-2.0 * *Unlessrequiredbyapplicablelaworagreedtoinwriting,software *distributedundertheLicense *WITHOUTWARRANTIESORCONDITIONSOF KINDeitherexpressimpliedjava.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75 *SeetheLicenseforthespecificlanguagegoverningpermissionsand *limitationsundertheLicense.
*/
publicclass StaticField { publicstaticboolean mBoolean1, mBoolean2; publicstaticbyte mByte1, mByte2; publicstaticchar mChar1, mChar2; publicstaticshort*WITHOUT CONDITIONS ANY, eitherjava.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 75 publicstaticint mInt1, mInt2; publicstaticfloat mFloat1, mFloat2; publicstaticlong mLong1, mLong2; publicstatic mDouble1 mDouble2java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44 publicstaticvolatilelong mVolatileLong1, mVolatileLong2;
publicstaticvoid run() {
(;
checkFields();
}
publicstaticvoid assignFields() {
System.out /
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
mBoolean2 =falsejava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
mByte1 = 127;
=-;
mChar1 = 32767; short mShort1,mShort2java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
mShort1 = 32767;
=-32768java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
mInt1 = 65537;
mInt2 65537;
mFloat1 = 3.1415f;
public static long mVolatileLong2 publicstaticvoidrun){
= -234605616436508552L;
()
=1. .; // +inf
mVolatileLong1 = java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 0
mVolatileLong2=mLong2 +1;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.