別看是在線筆試,可是很是嚴格,全稱窗口不得最小化和關閉,轉移,全稱須要打開攝像頭監控,使用草稿紙須要攝像頭對準……反正2個小時,題量在那兒擺着,有做弊的功夫不如好好作作最後的編程題呢……網易不讓泄漏原題,可是我只是說了考察的知識點,不犯法吧……html
3月初投了網易內推,當初覺得有內推碼的就免筆試了,最後空歡喜,有內推碼也要在線筆試……先在線填寫了簡歷,等了漫長的半個多月,開始就認爲簡歷掛掉了,畢竟網易,周邊的小夥伴,有掛掉的……我都等到上週了纔來通知,說今天在線筆試……算法
整體感受考察不算很難,可是很廣,並且對JavaSE的知識點考察很深刻,還不只僅是考察Java,涉及了設計模式,Java語法,數據庫SQL,Linux命令,Windows,數據結構,網絡,算法,操做系統等領域,並且編碼題不能在IDE上編碼,致使很不適應,說明平時太依靠IDE了,也不是啥好事兒。數據庫
題型回憶:編程
class SuperClass { SuperClass(String str) { System.out.println("Super with a string."); } } publicclass SubClass extends SuperClass { SubClass(String str) { System.out.println("Sub with a string."); } publicstaticvoid main(String[] args) { SubClass sub = new SubClass("sub"); } }
程序在初始化子類時(沒有顯示調用父類的構造器)先要尋找其父類的默認無參構造方法,結果沒找到那麼編譯天然不能經過。解決這個問題有兩個辦法:windows
1.在父類中增長一個默認無參構造方法。
2.在子類的構造方法中增長一條語句:super(str); 且必須在第一句。 設計模式
class One { One(String str) { System.out.println(str); } } class Two { One one_1 = new One("one-1"); One one_2 = new One("one-2"); One one_3 = new One("one-3"); Two(String str) { System.out.println(str); } } publicclass Test { publicstaticvoid main(String[] args) { System.out.println("Test main() start "); Two two = new Two("two"); } }
class One { One(String str) { System.out.println(str); } } class Two { One one_1 = new One("one-1"); One one_2 = new One("one-2"); static One one_3 = new One("one-3"); Two(String str) { System.out.println(str); } } publicclass Test { publicstaticvoid main(String[] args) { System.out.println("Test main() start "); Two two_1 = new Two("two-1"); System.out.println("------------"); Two two_2 = new Two("two-2"); } }
class One { One(String str) { System.out.println(str); } } class Two { One one_1 = new One("one-1"); One one_2 = new One("one-2"); static One one_3 = new One("one-3"); Two(String str) { System.out.println(str); } } publicclass Test { static Two two_3 = new Two("two-3"); public static void main(String[] args) { System.out.println("Test main() start "); Two two_1 = new Two("two-1"); System.out.println("------------"); Two two_2 = new Two("two-2"); } }
class One { One(String str) { System.out.println(str); } } class Two { static int i = 0; One one_1 = new One("one-1"); static One one_2 = new One("one-2"); static One one_3 = new One("one-3"); Two(String str) { System.out.println(str); } } publicclass Test {//主類 public static void main(String[] args){ System.out.println("Test main() start "); System.out.println("Two.i = " + Two.i); } }
Test main() start網絡
one-2數據結構
one-3ide
Two.i = 0post
接下來的題順序忘了,就大概回憶知識點有多少算多少了……
……
其餘的小題忘了,就這樣吧。再接再礪!