JVM is platform independent/dependent? why?

Which one is faster in execution Array List or Array? why?

Showing Answers 1 - 54 of 54 Answers

mithra

  • Oct 11th, 2005
 

JVM is paltform dependency.

  Was this answer useful?  Yes

Devidas Sonawane

  • Oct 28th, 2005
 

JVM is Platform dependent b'coz if JVM is not loaded in the platform then we can't run program. For every platform need to upload JVM. ArrayList is faster than Array b'coz ArraList is not Synchronized and they directly take parameter, less complcated and easy.  

rabbi

  • Jul 1st, 2006
 

JVM is platform dependent. Just think u don' t use a unique jdk for each operating system. You have different versions of jdk for different platform. So each version creates each different JVM for different platform. But JVM converts the byte code , is platform independent.Array is faster than ArrayList. Because ArrayList can take different type of objects as parameter. by Array is only one type of datatype. ArrayList may faster if u use generics.

gyhufgy

  • Feb 21st, 2007
 

Yes, JAVA is platform independent.

vasu

  • Aug 19th, 2007
 

jvm platform dependent,it is developed in other languages,arraylist faster than array

shekarGeek

  • Feb 20th, 2008
 

JVM is PI.Byte code is a highly optimized set of instructions. JVM is an interpreter for byte code. Translating a java program into byte code helps makes it much easier to run a program in a wide variety of environment.JVM is an interpreter for byte codeJRE is an implementation of the Java Virtual Machine, which actually executes Java programs.

  Was this answer useful?  Yes

rariedel

  • May 23rd, 2008
 

The Java Virtual Machine (JVM) is an executable that is itself is platform dependent: that is, there is a unique JVM that must be implemented for any particular platform to which it is deployed.

The JVM creates an environment that can load and run Java code. The JVM environment itself is platform independent for any Java code that is run under its auspices.

2) The answer here depends entirely on what one does with the ArrayList or Array. Since the ArrayList is a derived Collection object, and an Array is an ordered array of primitive types on might expect operations on an Array to complete more quickly than operations using the "fatter" interface of the ArrayList -- all other factors being equal.

rajeshkarka

  • May 31st, 2010
 

JVM is platform independent. But installation has provided for different OS. You can check this by debugging code in Windows and linux platform.

And ArrayList is faster because Array List is a growable elements. You no need to allocate memory for each element. Where as you need to define it for Array.

 

  Was this answer useful?  Yes

Isaq1786

  • Jun 7th, 2010
 

JVM is not platform Independant. There are different JVM's available for different platform. But the application from JVM are platform independant.

  Was this answer useful?  Yes

antony

  • Jul 12th, 2011
 

Array will be faster because of contiguous memory location.array list is implemented using list ,memory utilization is high but not faster.

 

Code

  Was this answer useful?  Yes

Rashmi

  • Jul 25th, 2011
 

ArrayList can grow and shrink dynamically, at runtime. Arrays cannot. Once you define an array at compile time, it stays the same size forever. The trade off is that arrays can be faster,

Isaq

  • Jul 26th, 2011
 

JVM is platform dependent B'coz it generates byte code which is depend on the platform. There are different versions available for ubuntu, fedora or windows like platforms

  Was this answer useful?  Yes

Arrays are efficient, but many times we need to use arrayList because it offers more flexible ways to access an object and unlike arrays it can expand and contract dynamically and for faster sorting, for accessing name value pairs etc.

  Was this answer useful?  Yes

manju4u

  • Nov 25th, 2011
 

JVM implementation platform dependent. however the behavior of JVM should be platform independent. This can be achieved by obeying the JVM Spec defined by the Sun.

  Was this answer useful?  Yes

sampra

  • Mar 6th, 2012
 

JVM is Platform dependent bcoz if JVM is not loaded in the platform then we cant run program. For every platform need to upload JVM

java is dependent on JVM not on OS

  Was this answer useful?  Yes

rashi

  • Jun 26th, 2015
 

Java is platform independent, JVM is not. It is unique for every OS.

  Was this answer useful?  Yes

Kailash Dofe

  • Jul 5th, 2017
 

JVM is platform dependent, each OS has its own JVM version. What makes JAVA platform independent is this platform dependent JVM. This JVM helps the intermediately compiled JAVA code(bytecode) to run on any machine which makes JAVA platform independent. We can understand it as, when the JAVA code is compiled i.e converted to a bytecode it is converted to that extent where it can run on any platform. After that this portable code can be taken to any OS where the JVM helps it to run

  Was this answer useful?  Yes

Gaurav Singh

  • Mar 12th, 2018
 

No, JVM is not platform independent. It is Platform dependent.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions