我试图了解班次运营商,并没有得到太多.当我尝试执行以下代码时
System.out.println(Integer.toBinaryString(2 << 11));
System.out.println(Integer.toBinaryString(2 << 22));
System.out.println(Integer.toBinaryString(2 << 33));
System.out.println(Integer.toBinaryString(2 << 44));
System.out.println(Integer.toBinaryString(2 << 55));
Run Code Online (Sandbox Code Playgroud)
我得到以下内容
1000000000000
100000000000000000000000
100
10000000000000
1000000000000000000000000
Run Code Online (Sandbox Code Playgroud)
有人可以解释一下吗?
我正在研究HashMapJava 中的实现,并且一度陷入困境.功能
是如何indexFor计算的?
static int indexFor(int h, int length) {
return h & (length-1);
}
Run Code Online (Sandbox Code Playgroud)
谢谢
我的应用程序中有2个控制器,如下所示
@Controller("/test1")
public class Test1Controller {
@RequestMapping("/new")
public String newtest1() {
//....
}
}
@Controller("/test2")
public class Test2Controller {
@RequestMapping("/new")
public String newtest2() {
//....
}
}
Run Code Online (Sandbox Code Playgroud)
现在,如果我向 /test2/new 请求发出请求,则转到另一个控制器 /test1/new.这里有什么不对吗?
我需要知道log4j上的配置是否发生更改,例如将日志记录级别从INFO更改为DEBUG等...是否可以/可以即时影响应用程序?
谢谢。