From 5a457e6d77991f3d8533d24ea6834430d7c2bc86 Mon Sep 17 00:00:00 2001 From: yennanliu Date: Mon, 13 Nov 2023 18:52:08 +0800 Subject: [PATCH] update faq --- doc/faq/faq_java.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/doc/faq/faq_java.md b/doc/faq/faq_java.md index c52e4d4b..65e2c128 100644 --- a/doc/faq/faq_java.md +++ b/doc/faq/faq_java.md @@ -95,8 +95,19 @@ System.out.println(aa==bb);// true - member variable - belong to class + - storage + - with static : belong to class (heap) + - without static : belong to instance + - life + - exist when class exist + - has default value - local variable + - in code block or in method + - storage : belong to stack + - life + - deleted when method execution complete + - has NO default value ```java // java @@ -133,6 +144,13 @@ public class VariableExample { ``` +### What static variable for ? + + +### static method VS instance method ? + +### Overwrite VS overload ? + ### String VS StringBuffer VS StringBuilder ? - String :