2018.4专题

金三银四过后整理出的阿里最新Java程序员面试题目(2018.4月)

目录 技术一面(23问) 技术二面(3大块) 性能优化(21点) 项目实战(34块) JAVA方向技术考察点(15点) JAVA开发技术面试中可能问到的问题(17问) 阿里技术一面 Java IO流的层次结构? 请说出常用的异常类型? SKU的全称是什么,SKU与SPU的区别及关系? FileInputStream在使用完以后,不关闭流,想二次使用可以怎么操作?

2018.4.39

2018.4.39 def init():GPIO.setwarnings(False)GPIO.setmode(GPIO.BCM)GPIO.setup(AIN2, GPIO.OUT)GPIO.setup(AIN1, GPIO.OUT)GPIO.setup(BIN1, GPIO.OUT)GPIO.setup(BIN2, GPIO.OUT)GPIO.setup(PWMB, GPIO.OUT)

2018.4.38

2018.4.38 def checkdist():GPIO.output(IN5,GPIO.HIGH)time.sleep(0.000015)GPIO.output(IN5,GPIO.LOW)while not GPIO.input(IN6):passt1 = time.time()while GPIO.input(IN6):passt2 = time.time()return (t2-t1)

2018.4.37

2018.4.37 def init():GPIO.setup(IN1,GPIO.OUT)GPIO.setup(IN2,GPIO.OUT)GPIO.setup(IN3,GPIO.OUT)GPIO.setup(IN4,GPIO.OUT)GPIO.setup(IN5,GPIO.OUT,initial = GPIO.LOW)GPIO.setup(IN6,GPIO.IN)

2018.4.35

2018.4.35 @Overridepublic void exitUse_db_stmt(SQLParser.Use_db_stmtContext ctx) {String dbName = ctx.database_name().getText();try {manager.switchDatabase(dbName);}catch (IOException e){e.printStack

2018.4.34

2018.4.34 @Overridepublic void enterParse(SQLParser.ParseContext ctx){status.setMsg("\n");try {manager = new Manager();manager.switchDatabase("public");}catch (IOException e){e.printStackTrace();}}

2018.4.32

2018.4.32 method HeapSort(a: array<int>)modifies a;requires a != null;requires a.Length > 0ensures multiset(a[..]) == multiset(old(a[..]));ensures sorted(a, 0, a.Length - 1);{Heapify(a);UnHeapify(a);

2018.4.30

2018.4.30 predicate sorted(a: array<int>, min: int, max: int)requires a != null;requires 0 <= min <= max < a.Length;reads a;{forall j, k :: min <= j < k <= max ==> a[j] <= a[k]}```![在这里插入图片描述](http

2018.4.28

2018.4.28 for (ArrayList<Row> rows : joinedTable) {Row tmpLeftRow = rows.get(0);Row tmpRightRow = rows.get(1);boolean valid = false; // 这一行是否满足where条件if (whereInLeft) {if (tmpLeftRow.getEntries().get