• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

How Java is secured

 
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends, i am new to java. can you explain how java is secured.
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Secured against ?
 
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are several factors that makes java applications/programs/code secure:
Ffor Example:
1. No Pointers --> means no explicit pointers are allowed in java programming
2. Exceptions --> exceptions avoids un-expected termination of a java program
3. Garbage Collection --> Avoids the programmes running out of memory
4. Compiled and Interpreted



 
Deepak Bala
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rayapudi Murali Krishna wrote:There are several factors that makes java applications/programs/code secure:
Ffor Example:
1. No Pointers --> means no explicit pointers are allowed in java programming
2. Exceptions --> exceptions avoids un-expected termination of a java program
3. Garbage Collection --> Avoids the programmes running out of memory
4. Compiled and Interpreted



Why exactly is java secure because of these reasons ? In comparison, C++ uses pointers, and does not use garbage collection. So is C++ insecure ?

The OPs question is just too vague to be answered
 
Sheriff
Posts: 22683
128
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Deepak Bala wrote:So is C++ insecure ?


Yes. Not because of the absence of a garbage collection, but because of pointer arithmetic. If a programmer makes one small error, he can read or write parts of memory that shouldn't be accessed. Just do a search on how many of the security holes are related to buffer overflows. In Java that's not possible without JNI; array indexes are protected for instance.
 
Deepak Bala
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

If a programmer makes one small error, he can read or write parts of memory that shouldn't be accessed.



mmm... I have to concede to the buffer overflow point, but I still say the question is too vague to answer
 
Marshal
Posts: 76450
366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is always something useful in the Java™ Tutorials.
 
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic