一.编程题
j i
n-1024: 010000000000
m-19 : 000100110000
000100110000
将m>>i位然后|
public class BinInsert {
public int binInsert(int n, int m, int j, int i) {
// write code here
m<<=j;
return m|n;
}
}
查找组成一个偶数最接近的两个素数_牛客题霸_牛客网 (nowcoder.com)
二.选择题错题
在一个类中由protected访问修饰符修饰的属性和方法,能够被同包中这个类和它的子类所访问。
只能捕捉一个异常
a是128,但是byte类型的数据范围是-128到127
128的二进制位:10000000 第一个二进制数字代表符号位,所以是-128
b是127