The moose likes Beginning Java and the fly likes why java is called Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "why java is called" Watch "why java is called" New topic

why java is called

iti garg

Joined: Oct 03, 2008
Posts: 9
Why java is called platform independent language?
And plzz tell me which book is best for studying core java?
[ October 03, 2008: Message edited by: Bear Bibeault ]
Deepak Bala

Joined: Feb 24, 2006
Posts: 6662

This post probably belongs in 'java in general beginner'.

Java is platform independent since the class is in byte code and the JVMs are implemented independently to read the same byte code in various operating systems. So you can compile a java program in windows and run it linux without the need for any specific change.

I would suggest the head first java book or the SCJP study guide to get you up to speed in java. Good luck

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

Please use real words when posting to the forums. Abbreviations such as "plzz" in place of "please" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

JavaRanch sheriff

[Asking smart questions] [About Bear] [Books by Bear]
fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11955

'platform independent' is also an overloaded term. it means different things to different people.

Generally, when referring to java, it means that the compiled code, the bytecode, can run on any platform that has a JVM. i can put the exact same .class file on two different machines, with different OS, and it will run (assuming the JVM exists).

You cannot do that with a language like "C/C++". You have to compile a version of your binary specifically for each OS.

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
marc weber

Joined: Aug 31, 2004
Posts: 11343

Welcome to JavaRanch!

If you are a beginner in Java, you should start with a good introductory book, like Head First Java by Sierra and Bates.

Note that books for the SCJP exam generally assume you already have this introductory foundation.

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
I agree. Here's the link:
subject: why java is called
It's not a secret anymore!