Why do java consider pointer as dangerous?

programmers are always confused with pointers