Friday, January 18, 2013

Why java is called robust?

Robust means reliable and no programming language can really assure reliability. Java puts a lot of emphasis on early checking for possible errors, as Java compilers are able to detect many problems that would first show up during execution time in other languages.

Java has the strong memory allocation and automatic garbage collection mechanism. It provides the powerful exception handling and type checking mechanism as compare to other programming languages. Compiler checks the program whether there any error and interpreter checks any run time error and makes the system secure from crash. All of the above features makes the java language robust.

 Java example of "robust" code:

if (var == true) {
    ...
} else if (var == false) {
    ...
} else {
    ...
}

 "robust code" means that your program takes into account all possibilities, and that there is no such thing as an error - all situations are handled by the code and result in valid state, hence the "else".

I am doubtful, however. If the variable is a boolean, what is the point of checking a third state when a third state is logically impossible?

"Having no such thing as an error" seems ridiculous as well; even Google applications show errors directly to the user instead of swallowing them up silently or somehow considering them as valid state. And it's good - I like knowing when something goes wrong. And it seems quite the claim to say an application would never have any errors.

35 comments:

  1. its really helpfull............

    ReplyDelete
  2. Nice Explanation !

    http://greatjoin.com

    ReplyDelete
  3. nice...its helpful.........

    ReplyDelete
  4. Kumaran KuzhiyilchaadiAugust 5, 2015 at 2:59 PM

    I'm not satisfied with this content....Can u pls explain in more detail?

    ReplyDelete
    Replies
    1. java is very powerful u knoww

      Delete
    2. it simply explains that why java is robusty?
      -because java provide-strong type checking(exception handling),automatic memory management(Had no pointers),automatic garbage collection

      Delete
  5. Arre wahh...fantanstic...bomblastic...elastic...plastic...icecream stick..buahahaha

    ReplyDelete
    Replies
    1. That much impressed?????
      Then could you pls help me............explain in more detail.....picasso KUTTAPPAAAA

      Delete
  6. very clean and clear...thanks..:)

    ReplyDelete
  7. Most of the time I don’t make comments on but I'd like to say that this article really forced me to do so. Really nice post!
    java tutorials

    ReplyDelete
  8. Because it is too difficult for any one to find a security lapse with java programming so it is quite robust and most secured. Thanks

    ReplyDelete
  9. Nice one..!!A must read explanation....

    ReplyDelete
  10. Nice Post! short and simple,yet more informative. Java is platform independent and object-oriented language which can run on any JVM platform and that is the beauty of this language. You should check out this blog for more information about Java Development.

    ReplyDelete
  11. thank you answerman :)

    ReplyDelete
  12. This is most important topic of Java programming this questions is asked in every examination Features of Java

    ReplyDelete
  13. Hey there! I must say really good job with the article.Java is considered as one of the secure programming languages used to develop applications. Today more number of businesses has understood the importance of Java web development and so Java keeps on improving itself.Java programming language keeps on updating itself and come with a newest version offering new features.

    ReplyDelete
  14. No. You have confused robustness and reliability. The latter means "always behaves the same way under the same initial conditions". The former means "behaves correctly under unforseen initial conditions."

    ReplyDelete
  15. It is good for selflearning. U can do it upto ur goal.....
    U can...
    U tooo.....

    ReplyDelete
  16. else is when var not equal false or true..

    ReplyDelete