todo

fancy java

up:2018-07-27 12:20:56 edit:2022-12-26 18:44:54 view:957
@Test  
public void testFalseEquelTrue(){
    if ( false == true ) { //these characters are magic: \u000a\u007d\u007b
          System.out.println("false is true!"); 
    }
}
public class NullStaticCall {
    public static void sFunction(){
        System.out.println("called "+"sFunction");
    }


    public static void main(String[] args) {
        //will not throw npe
        ((NullStaticCall)null).sFunction();
    }
} 
        String 汉字变量 = "test";
        System.out.println(汉字变量);

        Assert.assertTrue(Character.isJavaIdentifierPart('汉'));
        Assert.assertTrue(SourceVersion.isIdentifier("汉字"));
Assert.assertEquals("a","\uuuuuuu0061");
        int i=7_8______9;
        Assert.assertNotEquals(077,77);
        int b=0b111100____1;
        int B = 0B1111000;
        int hex=0xa_b_C;

        float f = 0x1.fP1f;

属性/static方法的hidden 与 方法 override
char 16位如何表示表情5字节
array子类和泛型子类
    final int a;
    if(true){
      a=1;
    }else{
      a=2;
    }   
    
array子类和泛型子类
    执行顺序  
			
TAGS: java fancy

not in sinaapp