How java is platform independent?

Answer Posted / gangadhar

when java source file is compiled it creates a .class file
which is a bytecode file. We can just use this .class file
to execute our program without the need of the source file.
If i want to excute the program in another system , i can
do so just by using .class file(i.e. i donot need the
source code).. but the system should have jvm.

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to convert string to byte array and vice versa?

587


I don’t want my class to be inherited by any other class. What should I do?

579


How thread scheduler schedule the task?

584


What is a predicate method?

566


What are triggers in DB? Explain their types. How do they work?

628






How do you reverse a string in java without using string buffer?

593


What is singleton pattern?

556


Why multiple inheritance is not supported by java?

514


Is class forname reflection?

520


Explain differences between checked and unchecked exceptions in java?

640


What is difference between arraylist and list in java?

585


Is string thread safe in java?

581


What is the main use of generics in java?

510


What about abstract classes in java?

612


What are synchronized blocks in java?

604