Results 1 to 7 of 7
- 02-03-2012, 08:30 PM #1
Member
- Join Date
- Feb 2012
- Posts
- 9
- Rep Power
- 0
- 02-03-2012, 08:35 PM #2
Member
- Join Date
- Oct 2011
- Posts
- 92
- Rep Power
- 0
Re: Java's being more secure than C++
Java programs have constraints on them. For example, Java programs won't compile unless you declare that a certain type of exception will be thrown. C++ allows you too compile more volitile programs. Also, in Java you can not reference memory locations that don't belong to your program. In C++, you can! It just means Java forces you too take extra precautions to make sure it doesn't do any damage. C++ gives you more freedom, but also comes with more risk as a result!
- 02-03-2012, 09:18 PM #3
Member
- Join Date
- Feb 2012
- Posts
- 9
- Rep Power
- 0
Re: Java's being more secure than C++
So, from what you saying, Java isn't more secure than C++. Java just uses safety features that require a certain level of security features?
-
Re: Java's being more secure than C++
- 02-03-2012, 11:00 PM #5
Member
- Join Date
- Feb 2012
- Posts
- 9
- Rep Power
- 0
Re: Java's being more secure than C++
I'm just reading a Java book, and it makes the claim that Java is more secure than C++. My opinion is its a baseless claim. I think the book is claiming the security benefits of a virtual machine for Java's own.
My understanding, when considering C++ vs Java, the trade-off is speed vs portability.
I'm spending this weekend, learning Java. I have experience in C++ programming. The point of my question was to see if I'm mode of thinking is correct. Also, I wanted to try the forums out as I will have many more questions once I start programming in Java. I learning it one thing, but using it a completely different animal. I just want to make sure I use it to its fullest potential.
-
Re: Java's being more secure than C++
It's an overly generalized unprovable nonsense statement. I would just move on if I were you.
Not quite. Java's "HotSpot" JVM is able to optimize code pretty well, so that while the first part might have once been true, it can not be made as a blanket statement. The second part of the statement also may have some holes. Sure you can create small programs that run on many different platforms, but once you start adding specialized libraries or services, portability becomes more difficult to maintain. I would say that Java is better adapted towards creating applications that may be able to run on multiple platforms but it is ill-suited towards making applications that need a close association with the operating system since it has been constructed to be as OS-agnostic as possible.My understanding, when considering C++ vs Java, the trade-off is speed vs portability.
Welcome to Java and welcome to the Java-Forums.org!I'm spending this weekend, learning Java. I have experience in C++ programming. The point of my question was to see if I'm mode of thinking is correct. Also, I wanted to try the forums out as I will have many more questions once I start programming in Java. I learning it one thing, but using it a completely different animal. I just want to make sure I use it to its fullest potential.
- 02-03-2012, 11:16 PM #7
Member
- Join Date
- Feb 2012
- Posts
- 9
- Rep Power
- 0
Similar Threads
-
Secure java code allong with the setup of application
By Annie George in forum NetBeansReplies: 0Last Post: 01-08-2011, 09:57 AM -
Why java is very secure
By siva_vs_siva in forum New To JavaReplies: 11Last Post: 09-08-2010, 11:57 AM -
How Java is so secure than other?
By makpandian in forum New To JavaReplies: 4Last Post: 06-26-2009, 04:22 AM -
data loss in the secure file transfer using java
By antony75 in forum NetworkingReplies: 4Last Post: 02-09-2009, 06:56 AM -
using Java to access a secure webpage, Exception occurred: Connection timed out
By toby in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 08-07-2007, 06:03 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks