GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 51 of 492    Print  

JVM is platform independent/dependent?why?

2) which one is faster in execution Array List or Array? why?


  
Total Answers and Comments: 10 Last Update: May 23, 2008   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 11, 2005 11:20:17   #1  
pkpradeeps Member Since: September 2005   Contribution: 1    

RE:
JVM is platform independent, because it coverts the Java code into Bytecode. Bytecode is same for every machine.
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
October 11, 2005 10:34:59   #2  
mithra        

RE: JVM is platform independent/dependent?why? ...
JVM is paltform dependency.
 
Is this answer useful? Yes | No
October 28, 2005 04:12:04   #3  
Devidas Sonawane        

RE: JVM is platform independent/dependent?why? ...
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.  
 
Is this answer useful? Yes | No
July 01, 2006 08:51:47   #4  
rabbi Member Since: June 2006   Contribution: 23    

RE: JVM is platform independent/dependent?why? ...
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.
 
Is this answer useful? Yes | No
February 21, 2007 00:40:33   #5  
gyhufgy        

RE: JVM is platform independent/dependent?why? ...
Yes, JAVA is platform independent.
 
Is this answer useful? Yes | No
August 19, 2007 09:20:40   #6  
vasu        

RE: JVM is platform independent/dependent?why? ...
jvm platform dependent,it is developed in other languages,arraylist faster than array
 
Is this answer useful? Yes | No
February 14, 2008 03:55:55   #7  
sampra Member Since: February 2008   Contribution: 279    

RE: JVM is platform independent/dependent?why? 2) which one is faster in execution Array List or Array? why?
JVM is platform dependent.
 
Is this answer useful? Yes | No
February 19, 2008 14:55:07   #8  
nuttyvarun Member Since: February 2008   Contribution: 7    

RE: JVM is platform independent/dependent?why? 2) which one is faster in execution Array List or Array? why?
JVM is platform dependent..
However Java is platform INdependent (Java is JVM dependent in a way..)

 
Is this answer useful? Yes | No
February 20, 2008 02:13:16   #9  
shekarGeek Member Since: March 2007   Contribution: 9    

RE: JVM is platform independent/dependent?why? 2) which one is faster in execution Array List or Array? why?
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.
 
Is this answer useful? Yes | No
May 23, 2008 15:30:36   #10  
rariedel Member Since: May 2008   Contribution: 8    

RE: JVM is platform independent/dependent?why? 2) which one is faster in execution Array List or Array? why?
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.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape