Skip to content

Commit

Permalink
update faq
Browse files Browse the repository at this point in the history
  • Loading branch information
yennanliu committed Nov 13, 2023
1 parent d5654fe commit 5a457e6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions doc/faq/faq_java.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 :
Expand Down

0 comments on commit 5a457e6

Please sign in to comment.