ALLInterview.com :: Home Page            
 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  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Java Related >> Java J2EE >> Core Java
 
 


 

 
 Core Java interview questions  Core Java Interview Questions (1720)
 Advanced Java interview questions  Advanced Java Interview Questions (331)
 Swing interview questions  Swing Interview Questions (43)
 EJB interview questions  EJB Interview Questions (134)
 Servlets interview questions  Servlets Interview Questions (255)
 Struts interview questions  Struts Interview Questions (195)
 JDBC interview questions  JDBC Interview Questions (187)
 JMS interview questions  JMS Interview Questions (9)
 SunOne interview questions  SunOne Interview Questions (3)
 J2EE interview questions  J2EE Interview Questions (71)
 Weblogic interview questions  Weblogic Interview Questions (145)
 Websphere interview questions  Websphere Interview Questions (14)
 Java Networking interview questions  Java Networking Interview Questions (20)
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions (87)
Question
how can you say that java is independ language
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how can you say that java is independ language
Answer
# 1
every one say that java is independent language.we have develop some java program to understand how java is platform independent.
public class Add{
public static void main(String []ar){
int a=10;
int b=20;
int a=a+b;
}
}
save the above program by Add.java
to run this program first we have to compile the program by using javac Add.java.after compile the program it generates Add.class file.Generally .class file contains javainstructions.we can not run the .class file directly on to the processor.so in this we require some virtual machine.so we have to instal jvm.To give the .class file input to the jvm.The jvm converts java instructions into the processor dependent instructions.so jvm is a dependent language.Wiothout jvm we will not able to run our java program.so in this way we say that java is independent language.
 
Is This Answer Correct ?    13 Yes 0 No
Pravallika
 
  Re: how can you say that java is independ language
Answer
# 2
When you program in any programming language, you compile your
program before executing it. Compiling your program means
you've converted your source code ( text ) into machine code(
which can be...

 
Is This Answer Correct ?    1 Yes 5 No
Mayank Sharma
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
why java does not support multiple inheritance Mind-Tree 40
what is difference between type 4 driver and type 1 driver? CMC 2
why pointer is not used in java?   3
can we have virtual functions in java? Wipro 11
what is webservices Mind-Tree 5
What is Marker interface in java? and what is clone? Wipro 14
What is the difference between set and list?   5
Default layout of Dialog object?   1
what is the difference between @include page and @include file   2
Hey buddy.. can you please tell me about the use of marker interface? And is there any link between marker interface and factory methods? Thanks in advance.   2
when we have to use final class in java?   2
jdbc drivers? Wipro 8
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com