上週末,參加了百度Android的面試.分筆試和麵試,其中面試分一面二和三面.這個流程走下來,差不多一天多了.
關於筆試
以下題目不一定按筆試時順序,是麥洛憑藉回憶,儘量將筆試的題目還原(筆試共有10道題目)
基礎題,輸入結果是什麼?
public static void main(String[] args) {
String str = new String(“abc”);
char[] ch = {‘a’,'b’,'c’};
change(str,ch);
t(str+” “);
t(ch);
}
public static void change(String str,char[] ch){
str = “gbc”;
ch[0] = ‘g’;
}
Map,Hashset,ArrayList以及LinkedList集合的區別,以及各自的用法
vity的啟動模式有哪幾種
4.介紹Handler機制
5.執行緒考核,解析sleep,wait,join,yield方法,以及notify 和notifyAll是如何控制執行緒同步的
oid 儲存方式以及各至用法
View 中BaseAdapter的使用和優化;在ListView中的item放置一個按鈕,如何使用按鈕對不能的item響應不同的事件
8.程式設計題: