wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes drawback of JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "drawback of JAVA" Watch "drawback of JAVA" New topic
Author

drawback of JAVA

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

HI All,


anyone can explain me that
-------------------------------
what is the drawback of java?
-----------------------------------

from my knowledge it is bit slower than c and c++ right? but why?

is there any other drawback?

please any one can explain me..waiting for your earnest reply..


thanks & regards,
seetharaman
abhishek pendkay
Ranch Hand

Joined: Jan 01, 2007
Posts: 184
every technology has its own tradeoff.. yes java is slower compared to C and C++ because the developers of JAVA were more concerned about platform independence then speed which made the language a bit slow compared to C but then it does offer you features C and C++ does not ... so its a personal judgement wether to consider speed as Java's drawback or to take it just as a tradeoff because it offers other features


The significant problems we face cannot be solved by the same level of thinking which created them – Einstein
SCJP 1.5, SCWCD, SCBCD in the making
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8708
    
    6

Originally posted by abhishek pendkay:
yes java is slower compared to C and C++


This hasn't been the case for quite some time:

Java performance on numerical code is comparable to that of C++,

Is Java Pulling Ahead?

The results I got were that Java is significantly faster than optimized C++ in many cases.

Java is Faster Than C++

C still wins on the first iteration, but Java is actually slightly faster on subsequent iterations!

Java is Faster Than C

Java has drawbacks, interacting with Word and Outlook, or the fact you have to install a VM, but the speed difference between Java and C/C++ performing the same work is negligible.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13875
    
  10

Java is not really slower than C or C++ anymore. That was a common criticism years ago, but currently Sun's Java VM is so well-optimized (especially the Hotspot just-in-time compiler and the garbage collection algorithms) that it is not really true anymore.

It is hard to speak about "the drawbacks of Java" in a very general sense. Whether Java is a good tool or not depends on the job that you need to do.

For example for low-level system programming, Java is probably not the best tool for the job - because Java was designed to be platform-independent, it can be difficult to do platform-specific things with it.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Thanks All
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
It's a little bit like asking "What's the drawback of apple pie?"


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Gary Morris
Greenhorn

Joined: Apr 29, 2008
Posts: 8
Oh, for goodness' sakes! Most EVERYBODY knows that cherry pie RULES over apple pie ANYDAY!!
joseph prabhu
Ranch Hand

Joined: Feb 26, 2008
Posts: 162
Originally posted by seetharam venkatasamy:
HI All,

Yes java is bit slower than C/C++. To have a platform independent we have to pay the time.There will be no much differenc in time.

Collections classes does not have unique method name to add/remove/manupulate the objects. To run the java developed program all the client should have jvm in the machine.java applets are browser dependent.java.net package have great disadvantge that is being replaced by R.M.I . if you come to know many more list it and send to my private mail
anyone can explain me that
-------------------------------
what is the drawback of java?
-----------------------------------

from my knowledge it is bit slower than c and c++ right? but why?

is there any other drawback?

please any one can explain me..waiting for your earnest reply..


thanks & regards,
seetharaman
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36486
    
  16
. . . and what is your point or question, Joseph Prabhu?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: drawback of JAVA
 
Similar Threads
new keyword
Question on REflection API
Array representaion query
about Enhanced For loop
Drawing irrugular shape