File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Whilst accessing a reference variable which has a value of `null` will compile f
2828int [] arr = null ;
2929
3030// Throws NullPointerException at runtime
31- arr. Length ;
31+ arr. length ;
3232```
3333
3434A [ ` NullPointerException ` is thrown] [ null-pointer-exception ] when trying to access a reference variable which is null but requires an object.
Original file line number Diff line number Diff line change 22
33- [ Stack Overflow] ( http://stackoverflow.com/questions/tagged/java ) .
44- [ The Java subreddit] ( https://www.reddit.com/r/java )
5- - [ Official Java documentation] ( https://docs.oracle.com/en/java/javase/11 /docs/api/index.html )
5+ - [ Official Java documentation] ( https://docs.oracle.com/en/java/javase/25 /docs/api/index.html )
66- [ Java Programming Books] ( https://github.com/EbookFoundation/free-programming-books/blob/main/books/free-programming-books-langs.md#java )
You can’t perform that action at this time.
0 commit comments