GeekInterview.com
Series: Subject: Topic:
Question: 526 of 576

JVM is platform independent/dependent? why?

which one is faster in execution Array List or Array? why?
Asked by: Interview Candidate | Asked on: Sep 5th, 2005
Showing Answers 1 - 21 of 21 Answers
pkpradeeps

Answered On : Sep 11th, 2005

View all answers by pkpradeeps

JVM is platform independent, because it coverts the Java code into Bytecode. Bytecode is same for every machine.

  
Login to rate this answer.
mithra

Answered On : Oct 11th, 2005

JVM is paltform dependency.

  
Login to rate this answer.
Devidas Sonawane

Answered On : 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.  

Yes  1 User has rated as useful.
  
Login to rate this answer.
rabbi

Answered On : Jul 1st, 2006

View all answers by rabbi

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.

Yes  3 Users have rated as useful.
  
Login to rate this answer.
gyhufgy

Answered On : Feb 21st, 2007

Yes, JAVA is platform independent.

Yes  1 User has rated as useful.
  
Login to rate this answer.
vasu

Answered On : Aug 19th, 2007

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

Yes  1 User has rated as useful.
  
Login to rate this answer.
sampra

Answered On : Feb 14th, 2008

View all answers by sampra

JVM is platform dependent.

  
Login to rate this answer.
nuttyvarun

Answered On : Feb 19th, 2008

View all answers by nuttyvarun

JVM is platform dependent..
However Java is platform INdependent (Java is JVM dependent in a way..)

  
Login to rate this answer.
shekarGeek

Answered On : Feb 20th, 2008

View all answers by shekarGeek

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.

  
Login to rate this answer.
rariedel

Answered On : May 23rd, 2008

View all answers by rariedel

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.

Yes  1 User has rated as useful.
  
Login to rate this answer.
rajeshkarka

Answered On : May 31st, 2010

View all answers by rajeshkarka

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.

 

  
Login to rate this answer.
Isaq1786

Answered On : Jun 7th, 2010

View all answers by Isaq1786

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

  
Login to rate this answer.
antony

Answered On : 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

  
Login to rate this answer.
Rashmi

Answered On : 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,

Yes  1 User has rated as useful.
  
Login to rate this answer.
Isaq

Answered On : 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

  
Login to rate this answer.
chandrashekarP

Answered On : Jul 28th, 2011

View all answers by chandrashekarP

Array is faster than ArrayList
ArrayList internally uses arrays only and arrays store data in sequential order so its faster than arraylist

  
Login to rate this answer.
Naga Sudheer

Answered On : Jul 28th, 2011

View all answers by Naga Sudheer

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.

  
Login to rate this answer.
manju4u

Answered On : Nov 25th, 2011

View all answers by manju4u

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.

  
Login to rate this answer.

JVM is Platform Dependent..
When we have OS like Windows, LINUX, Solaris, each OS has its own JVM.
JVM will convert the Byte code into machine Understandable code.

  
Login to rate this answer.

Yes, because u write a java program in Linux Os & compile it.You get a .class file.Take that class file & run in Windows OS.Java pgm runs properly.

  
Login to rate this answer.
sampra

Answered On : Mar 6th, 2012

View all answers by sampra

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

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.