java 經典多點面試題

2021-08-03 13:19:57 字數 437 閱讀 3827

以下知識點包含哪幾部分

public class test

public void run()

;}.start();

/**1.匿名內部類:(new runnable) 

必須繼承乙個父類或實現乙個介面

runnable是乙個介面

new thread(new  runnable()

2. 物件呼叫成員方法:簡化相當於 new thread(){}.start();

new thread(new  runnable()

public void run()

;}.start();

3.重寫run()方法

4.構造方法

new thread(引數)new runnable引數是乙個介面---匿名內部類

5. 匿名物件

*/

經典JAVA面試題

建立 tcp ip 連線 三次握手具體過程 由瀏覽器傳送乙個 http 請求 經過路由器的 通過伺服器的防火牆,該 http 請求到達了伺服器 伺服器處理該 http 請求,返回乙個 html 檔案 瀏覽器解析該 html 檔案,並且顯示在瀏覽器端 這裡需要注意 2.事務的併發問題有哪幾種?答 丟失...

java經典面試題

string str abcdesjkjsadfoiqwejhjkahjsiuhaskhka int counter new int 26 for int i 0 i經典面試題目 int n 5 for int i 0 i 5 i system.out.println n 5解析 n 5 n n 規...

經典Java面試題 Spring AOP

面試原題 action類的定義如下 為該類的actionsomething方法定義的切面攔截如下 請問在執行action物件的actionsomething 時的輸出是什麼?a.123456 b.654321 c.521643 d.521463 正確答案 c 面試技術點 spring aop定義以及...