ITP

BSc IT - Structure Programming Methodology - Java

Does java make use of pointers? Why?

In : BSc IT Subject : Structure Programming Methodology - Java

No, 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.

About us

A truly open platform where you may ask questions and get answers. We also provide comprehensive and easy-to-understand answers to question papers.  discover...

Site status

Flag Counter

Privacy Policy

Sitemap