ALLInterview.com :: Home Page kalaajkal.Com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories >> Code-Snippets >> Programming-Code >> C-Code
 
 


 

 
Question
why java is platform independent?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: why java is platform independent?
Answer
# 1
Java is compiled to an intermediate form called byte-code. 
A Java program never really executes natively on the host 
machine. Rather a special native program called the Java 
interpreter reads the byte code and executes the 
corresponding native machine instructions. Thus to port 
Java programs to a new platform all that is needed is to 
port the interpreter and some of the library routines. Even 
the compiler is written in Java. The byte codes are 
precisely defined, and remain the same on all platforms.
 
0
Guest
 
  Re: why java is platform independent?
Answer
# 2
java is platform independent as JVM compiles source code to 
its byte code which is then interpreted to object code.thus 
any machine having a java compiler can execute that byte 
code.this does not depends on the hardware or the OS of the 
system
 
0
Gunjan
 
 
 
  Re: why java is platform independent?
Answer
# 3
java have java virtual machine which make java plateform
independent..jvm convert input source code into bye code
which is run on any plateform..
 
0
Asha
 
  Re: why java is platform independent?
Answer
# 4
yes java is a platform independent. JVM(java virtual
machine) is used in java , that jvm can be converted source
code into byte code so java known as platform independent.
 
0
Madhan
 
 
 
 
Other C Code Interview Questions
 
  Question Asked @ Answers
 
Program to find the largest sum of contiguous integers in the array. O(n)  5
to remove the repeated cahracter from the given caracter array. i.e.., if the input is SSAD output should of SAD Synergy6
how can u draw a rectangle in C Wipro23
1) int i=5; j=i++ + i++ + i++; printf("%d",j);This code gives the answer 15.But if we replace the value of the j then anser is different?why? 2)int i=5; printf("%d",i++ + i++ + i++); this givs 18. Infosys3
how to return a multiple value from a function? Wipro3
How can u say that a given point is in a triangle? 1. with the co-ordinates of the 3 vertices specified. 2. with only the co-ordinates of the top vertex given.  1
How to read a directory in a C program?  3
How to reverse a String without using C functions ? Wipro8
Finding a number which was log of base 2 NetApp1
Give a oneline C expression to test whether a number is a power of 2? Motorola8
how to return a multiple value from a function? Wipro1
program to Reverse a linked list Ness-Technologies2
Program to Delete an element from a doubly linked list. Infosys4
How do I write a program to print proper subset of given string . Eg :input: abc output:{},{a},{b},{c},{a,b},{a,c},{b,c}, {a,b,c}.I desperately need this program please mail me to saravana6m@gmail.com Deshaw7
How do you write a program which produces its own source code as its output?  4
How do you sort a Linked List (singly connected) in O(n) please mail to pawan.10k@gmail.com if u can find an anser...i m desperate to knw... Oracle3
String reverse with time complexity of n/2 with out using temporary variable. NetApp5
Finding a number multiplication of 8 with out using arithmetic operator NetApp7
Write, efficient code for extracting unique elements from a sorted list of array. e.g. (1, 1, 3, 3, 3, 5, 5, 5, 9, 9, 9, 9) -> (1, 3, 5, 9). Microsoft8
Link list in reverse order. NetApp7
 
For more C Code Interview Questions Click Here 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com