Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Java has no pointer concept but c++ has

This is a discussion on Java has no pointer concept but c++ has within the OOPS forums, part of the Software Development category; Java has no pointer concept but c++ has. I want to know whether it is a advantage or disadvantage. Thanks Manoj...

Go Back   Geeks Talk > Software Development > OOPS
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

OOPS Object-Oriented Programming Concepts

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-17-2007
Expert Member
 
Join Date: Jan 2007
Location: Bangalore
Posts: 252
Thanks: 4
Thanked 8 Times in 7 Posts
Manojks is on a distinguished road
Smile Java has no pointer concept but c++ has

Java has no pointer concept but c++ has. I want to know whether it is a advantage or disadvantage.

Thanks
Manoj
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-19-2007
Expert Member
 
Join Date: Dec 2006
Location: Chennai
Posts: 203
Thanks: 2
Thanked 17 Times in 15 Posts
Barbie is on a distinguished road
Re: Java has no pointer concept but c++ has

Advantage. I don like pragramming with pointers.
its unsafe to use pointers.
but we can program efficiently using pointers.
Reply With Quote
  #3 (permalink)  
Old 03-20-2007
Contributing Member
 
Join Date: Mar 2007
Location: renukoot(sonbhadra)
Posts: 39
Thanks: 5
Thanked 4 Times in 4 Posts
rohit dwivedi9450 is on a distinguished road
Re: Java has no pointer concept but c++ has

pointers in c c++ provide multiple behavior so what i think it is easy for us that java is free from pointer
Reply With Quote
  #4 (permalink)  
Old 02-14-2009
Junior Member
 
Join Date: Aug 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
pankaj.hirway is on a distinguished road
Re: Java has no pointer concept but c++ has

java being used for creating applets,where it is unsafe to use pointer because by using pointer any memory location can be accessed and for security issues pointer are not used in java
correct me if i am wrong please.......
Reply With Quote
  #5 (permalink)  
Old 02-23-2009
Junior Member
 
Join Date: Feb 2009
Location: tanjore
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
deepikajavahar is on a distinguished road
Post Re: Java has no pointer concept but c++ has

of course its an advantage only and one of the main reason why we r saying tat java is more secure than c++ and c.....
Reply With Quote
  #6 (permalink)  
Old 02-24-2009
Expert Member
 
Join Date: Nov 2008
Location: Chennai
Posts: 303
Thanks: 1
Thanked 37 Times in 32 Posts
amitpatel66 is on a distinguished road
Re: Java has no pointer concept but c++ has

Pointers, help you directly access memory location and also used vastly in programming for gaming purpose.

Applications can be developed using Java because you do not require Pointers concept for creating applications.

Pointers are very efficient to use but always dangerous becuase there is no limit to which it can read memory locations.
Reply With Quote
  #7 (permalink)  
Old 02-26-2009
Contributing Member
 
Join Date: Jul 2007
Location: India TamilNadu, Udumalpet
Posts: 39
Thanks: 19
Thanked 6 Times in 6 Posts
kaliswaranbsc is on a distinguished road
Re: Java has no pointer concept but c++ has

C++ has Pointer. We can access the Data Directly by using the pointer. It may cause for Security Flow. Security Feature is less in C++.

In Java We cannot access Data directly by using the pointer. So It has High Security.
Reply With Quote
  #8 (permalink)  
Old 09-23-2009
Junior Member
 
Join Date: Sep 2009
Location: jaipur
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Shipra_gets is on a distinguished road
Re: Java has no pointer concept but c++ has

C++ has pointer. We can access the data directly by using the pointer, directly access the memory location so in C++ security feature is less.
In java there is no concept of pointers so the java is highly secure.
Reply With Quote
  #9 (permalink)  
Old 09-27-2009
Junior Member
 
Join Date: Sep 2009
Location: hyderabad
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
jyothi85 is on a distinguished road
Thumbs up Re: Java has no pointer concept but c++ has

hello guys

yes java doesn't support pointers because of three reasons:

> it leads to confusion unless we have full-fledged knowledge about pointers.

>the program crashes easily (if the person forgets to release the memory that leads to wastage ).

>it breaks the security where security is the major advantage of java language
(viruses,worms such programs will easily inject into our program using pointers as it is a direct memory location).

i hope my answer will be helpful .bye

Last edited by jyothi85; 09-27-2009 at 02:58 AM.
Reply With Quote
  #10 (permalink)  
Old 2 Weeks Ago
Junior Member
 
Join Date: Oct 2007
Location: jaipur
Posts: 5
Thanks: 2
Thanked 1 Time in 1 Post
devgan is on a distinguished road
Smile Re: Java has no pointer concept but c++ has

I think java uses a new features of refernce variables instead of pointers through we dont have to also use many other function such as malloc ,calloc which are used in C++ which allocationg memory & using pointer
Reply With Quote
  #11 (permalink)  
Old 2 Days Ago
Junior Member
 
Join Date: Oct 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
chithradevi.s is on a distinguished road
Re: Java has no pointer concept but c++ has

C++ has pointers but java doesn't support it,becoz java focuses on security.

Using pointers we can write virus programs,inorder to avoid it,they removed the ptr concept from java.

Hope tis helps u.
Reply With Quote
Reply

  Geeks Talk > Software Development > OOPS

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
void pointer in C Programming Language Shivanna C and C++ 13 02-08-2009 09:54 AM
OOPS concept..... psuresh1982 OOPS 13 08-02-2007 06:17 AM
Version concept espiderz42 Testing Issues 2 04-19-2007 04:37 AM
Want to know the Concept StephenRaj Unix/Linux 4 01-12-2007 07:54 AM
Concept in .NET JohnMathew ASP.NET 2 10-09-2006 04:25 PM


All times are GMT -4. The time now is 09:01 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved