adspace


After compilation of java program we'll get .class code. If
it's generated in OS Windows XP will it work on OS Linux? If
yes why? If no why?

Answer Posted / seshadri pera

Ranjmella is obsolutely correct for this Question. JVM is
platform dependent but any JVM specific to that OS will run
the compiled .class file on any OS.

.class files are in bytecode it can be run on any platform
which has it's specific JVM installed in that.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java string pool?

1083


Write a program to print count of empty strings in java 8?

1086


Differentiate between static and non-static methods in java.

1128


Realized?

2264


What is the difference between equals() and == in java?

1039


What is a classloader in java?

1090


What do you mean by an interface in java?

1105


What is an object in java and how is it created?

1140


Explain public static void main(string args[]) in java.

1076


explain different ways of using thread? : Java thread

1082


How to sort array in descending order in java?

996


What are the differences between heap and stack memory in java?

1140


What is parsing in java?

1041


What is the difference between break and continue statements?

1127


Is minecraft 1.15 out?

1045