答案:11 位 最大填充长度指的是填充数据的位数
java
MySQL中int类型占用4个字节byte,每一个byte占8位bit,每个bit表示一位0或1.那么mysql中int类型能存储的的unsigned(无符号)类型的范围是0~2^32-1=4294967295 ; mysql
signed(有符号)的范围是-2^31=-2147483648 ~ 2^31-1=2147483647;正则表达式
能存储的数据位数是11位sql
答案:128 -128
express
a=0000000010000000,当进行强制转换时,byte是八位的,截取a的后八位,b=10000000;最高位是符号位,说明b是负数,在计算机中以补码表示,求其源码,先减1获得反码01111111,取反获得源码10000000,也就是-128.this
public static void main (String[] args) { String classFile = "com. jd. ".replaceAll(".", "/") + "MyClass.class"; System.out.println(classFile); }
答案:spa
/////////MyClass.class
JDK API 中关于String类的replaceAll方法code
String replaceAll(String regex, String replacement)字符串
Replaces each substring of this string that matches the given regular expression withe given replacement.源码
替换符合给定的正则表达式regex的子字符串为给定的replacement
第一个参数是正则表达式 正则表达式中'.' 默认状况下表示除了换行符以外的全部字符。 因此com. jd. 被替换为/////////
若是只想替换"." 正则表达式应该是"\.",在Java中应该是"\\.",由于Java中对"\"有特殊的要求。