Top 10 Errors Java Programmers Make


THANK YOU TO David Reilly FOR HIS INFORMATION

10-Accessing non static member variables from static method(Such As Main Method)

9-Mistyping the name of method when overriding

8-Comparison assignment (= rather than ==)

7-Comparing two objects using == rather than using .equals(Object object) method

6-Confusion between passing by value or passing by reference

5-Writing blank exception handlers

4-Forgetting that java is zero-indexed

3-Preventing concurrent access to shared variables by threads

2-Capitalization errors

1-NULL pointers

RELAXING NATURE VIDEO