Does java make use of pointers? Why?
In : BSc IT Subject : Structure Programming Methodology - JavaNo, Java does not allow direct use of pointers like languages such as C or C++. Instead, Java uses a safer concept called references to work with objects in memory. The reason Java avoids direct pointers is to make the language more secure, stable, and easier to use . With no manual pointer handling, Java prevents common programming errors like memory leaks, dangling pointers, and unauthorized memory access. This also allows Java to manage memory automatically through garbage collection , which cleans up unused objects and keeps the program running smoothly without requiring the developer to handle memory manually.