使用基本类型的包装对象,好处可以为空且可以序列化 package com.tj; public class MyClass2 { public static void main(String[] args) { // 为每一个原始类型创建包装对象 Boolean refBoolean = new Boolean(true); Byte refByte = new Byte((byte) 123); Character refChar = new Character('x'); Short ref
/*例子 判断规则 http://xxx.xxx/new.php?id=57 and 1=1 正确 http://xxx.xxx/new.php?id=57 and 1=2 错误 http://xxx.xxx/new.php?id=57 and 2-1=1 正确 http://xxx.xxx/new.php?id=57 and 2-1=2 错误 http://xxx.xxx/new.php?id=57 and a=a 正确 http://xxx.xxx/new.php?id=57 and 'a'