UrbanPro

Learn Java Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Why Java doesnot have Pointer ?

Asked by Last Modified  

19 Answers

Learn Java

Follow 0
Answer

Please enter your answer

Corporate trainer with 11 years of experience, Founder of Study9

The reasons are Pointers are fundamentally unsafe. Java has a robust security model and disallows pointer arithmetic.Java ensures pointer access via indexed array. A big advantage of Java's indexed array access is that it detects and disallows out of bounds array access, which can be a major source...
read more
The reasons are Pointers are fundamentally unsafe. Java has a robust security model and disallows pointer arithmetic.Java ensures pointer access via indexed array. A big advantage of Java's indexed array access is that it detects and disallows out of bounds array access, which can be a major source of bugs. Java has the concept of References to objects,but it just doesn't call them pointers. Any normal object reference works as one of these. When you do String s="Hello"; you get what is effectively a pointer to a string object. read less
Comments

Industry expert and professional lecturer/trainer

To avoid memory hacks and leaks it is an intentional decision taken by JAva Pioneers
Comments

Tutor - Maths and computer science

Because Java was built with safety in mind and pointers are a point of complexity(and thus failure) in a lot of programs if the developer is not careful. Java abstracts a number of things away from the developer to make things easier and safer for them, ie, garbage collection.
Comments

Expert Tutor

Java does not have pointers. This was an intentional decision by the creators of Java, because most people would agree that having pointers creates a lot of potential for bugs in the code -- pointers can be quite confusing, especially to new programmers. Because arrays and strings are provided as class...
read more
Java does not have pointers. This was an intentional decision by the creators of Java, because most people would agree that having pointers creates a lot of potential for bugs in the code – pointers can be quite confusing, especially to new programmers. Because arrays and strings are provided as class types in Java, there is no need for pointers to those constructs. By not allowing pointers, Java provides effectively provides another level of abstraction to the programmer. read less
Comments

Do remove the complexity in programming
Comments

MCA

1. References store an address. That address is the address in memory of the object. So, when a class is declared like so: "PersonClass y = new PersonClass();", the "y" variable actually stores an address in memory. If you were to look at that address in memory you would see the details of...
read more
1. References store an address. That address is the address in memory of the object. So, when a class is declared like so: "PersonClass y = new PersonClass();", the "y" variable actually stores an address in memory. If you were to look at that address in memory you would see the details of the PersonClass object. Pointers in C++, however, point directly to the object. 2. You can not perform arithmetic operations on references. So, adding 1 to a pointer is not possible, but is possible in C++. read less
Comments

Professional Java J2EE Training with certification focus or Maths/English Tuition

Java manages memory in a different way compared to C++. It has automatic memory management and garbage collector. So it does not have a pointer again to confuse programmer and rather ease programming.
Comments

Java Techonologies

Having pointers creates a lot of changes for bugs in the code -- pointers can be quite confusing, especially to new programmers. By not allowing pointers, Java provides abstraction to the programmer. and also pointers in java are acheived thru reference variables in java whose References store an address...
read more
Having pointers creates a lot of changes for bugs in the code – pointers can be quite confusing, especially to new programmers. By not allowing pointers, Java provides abstraction to the programmer. and also pointers in java are acheived thru reference variables in java whose References store an address in memory where we can not perform any arithmetic operations on this reference variable(address) Animal a=new Animal(). a->Reference variable read less
Comments

Computer Engineer

Because Java does not provide direct memory manipulation rights to it's users. With help of pointers you are allowed to access memory directly which is not allowed in Java. That's why Java does not have any pointers. Java provides special classes to interact with system hardware.
Comments

IT Professional Trainer with 15 years of experience in IT Industry

To reference objects in java you use references. In other languages like C/C++ you use pointers. Pointers and references are used to point to objects in a program. In C/C++ you declare a pointer to point to a object or data type. Once you are done and no longer require the datatype or object, you...
read more
To reference objects in java you use references. In other languages like C/C++ you use pointers. Pointers and references are used to point to objects in a program. In C/C++ you declare a pointer to point to a object or data type. Once you are done and no longer require the datatype or object, you must release the pointer, otherwise it is pointing to something that no longer exists. This can occur during pointer arithmetic, or just forgetting to deallocate the pointer to null. This causes problems for memory management, and is more dangerous during run-time which can cause the program to crash; sometimes this can go undetected at compile time. Sun microsystems created and enforced references to make "pointing" safer to use in collaboration with the garbage collector memory manager that runs in the Java Virtual Machine. You do not have to explicitly declare or release objects, even if you made the error of forgetting to in your code, it is handled by the garbage collector. A reference can never point to nothing, it is either null or points to an object. The garbage collector, manages the allocation and release of memory and makes sure there is no referencless objects. This makes it safer. read less
Comments

View 17 more Answers

Related Questions

1.What is Model Driven Interceptors is used for? 2.what is the purpose of using Action support??
Using ActionSupport class, we can implement Custom validation which validates at the server-side. We can write server side validation logic in validate() method.
Monisha

 I want to learn from beginning, please tell me what is the best source to learn (core java)

hi sunaini It is very good that you want to learn programming... I would recommend you c,c++,java and dotnet courses...for becoming a good provrammer.. we provide online training..at lowest prices if...
Sunaini
What are the differences between Class Methods and Instance Methods in Java?
Class methods are methods which are declared as static. The method can be called without creating an instance of the class. Class methods can only operate on class members and not on instance members as...
Neval
0 0
5
Why using Overriding in Java ?
There was a student who always pronounces "University" as "Univerkity". His teacher got angry and called the parents and asked to know the reason. Teacher got shocked as they are pronouncing "Capacity"...
Shivendra

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

How do i get best Campus / Off Campus Placement?
Companies are looking for Skilled Freshers. So build your technical skills while doing MCA / BTech / BCA / BSc (IT or CS) into below areas- 1. Strong your programming & debugging skills ...

What Is Applet & Its Life Cycle?
What is Applet & its life cycle?Applet is a Java programme that can be embedded into HTML page.Java Applet runs on the java enables web browsers such as Mozilla & Internet Explorer.Applets are...
I

ICreative Solution

0 0
0

Implementation: What Is JPA And JPA?
The basic Java framework to access the database is JDBC. Unfortunately, with JDBC, a lot of hand work is needed to convert a database query result into Java classes. JPA allows us to work with Java classes...

Java Hash Map internal implementation
1.Hash Map internal implementation: In hash map it will create an array of table (to store the {Key,Value} pair) which is of type java.util.HashMap.EntryThe Entry object contains {hash, key, next, value}...
R

Java Achieve (JAR)
Java Archieve is a binary form to bundle a Java library which equivalent to zip file. It contains .class files, .properties, .jpeg, OR any supporting files to execute this library. For Example- junit.jar,...

Recommended Articles

Designed in a flexible and user-friendly demeanor, Java is the most commonly used programming language for the creation of web applications and platform. It allows developers to “write once, run anywhere” (WORA). It is general-purpose, a high-level programming language developed by Sun Microsystem. Initially known as an...

Read full article >

In the domain of Information Technology, there is always a lot to learn and implement. However, some technologies have a relatively higher demand than the rest of the others. So here are some popular IT courses for the present and upcoming future: Cloud Computing Cloud Computing is a computing technique which is used...

Read full article >

Java is the most famous programming language till date. 20 years is a big time for any programming language to survive and gain strength. Java has been proved to be one of the most reliable programming languages for networked computers. source:techcentral.com Java was developed to pertain over the Internet. Over...

Read full article >

Java is the most commonly used popular programming language for the creation of web applications and platform today. Integrated Cloud Applications and Platform Services Oracle says, “Java developers worldwide has over 9 million and runs approximately 3 billion mobile phones”.  Right from its first implication as java 1.0...

Read full article >

Looking for Java Training Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Java Training Classes?

The best tutors for Java Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Java Training with the Best Tutors

The best Tutors for Java Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more