Submit Your Article
Home Articles News Tutorials Videos Add An Article
Topics: Design Photoshop Programming PHP CSS Java Database Web Development Javascript Ajax
– Close + Open

Find Out More About DevWebPro!

Sign up for the newsletter


» Terms & Conditions

Welcome to the New DevWebPro!

DevWebPro Includes:
  Hundreds Of Tutorials   Developer News
  Unique Gadget Videos   Tons of Topics to Discuss
  Expert Advice   We Will Publish Your Articles

Understanding The Java Trade Offs Between Speed And Efficiency

By: Vaibhav Pandey
Tuesday, December 22nd, 2009
Text: Decrease Font Size Increase Font Size | Print Print Article | Share: Delicious Digg StumbleUpon Post to Twitter Post to Facebook

Java is a common programming language and the basic purpose of Java is to develop network programs. Now it is also used to develop system software’s and programs too. The Java architecture has trade off between speed and efficiency. In case of Java the efficiency beats the speed the execution and rightly so because there are issues which are needed to be addressed in order to become a sound programming language.

Java has some incredible features which are not in any programming language. But these features comes at some price. The features offered by Java makes Java programs slow in execution. Most of you must not be aware of the fact that Java programs are slower than C++ programs. There are some reasons which states that Java programs are slow in comparison to C++ or C.

1. Java ByteCode is slow in interpreting than executing the machine code of C++.

2. Checks on array bounds are made on each and every array.

3. All the variables are checked for type at RunTime.

4. Java programs are dynamically linked and therefore,the programs has to wait for bytecode to get downloaded.

5. Java checks for null values for all the objects at runtime.

6. The garbage collector is not very efficient in sweeping the unused space.

7. There are also no concept of pointers involved in Java.

8. The extra security checks makes Java more slow in executing(interpreting) the programs(ex:Java Sandbox).

With so many security and value based checks the Java is indeed slow but it provides more security which is not provided by any other language.

Comments

Topics: ,

About the Author:
Vaibhav Pandey got offered employment from an Indian Multinational IT Company. He is 21 years old. He has a huge interest in Java programming and has liked it from his study days. Vaibhav loves to blog and share his experiences and thoughts. He now resides in Lucknow, a state capital in India. Check out his blog at http://javatutorialsworld.blogspot.com.
DevWebPro is an iEntry Network ® publication - © 1998-2010 All Rights Reserved