tags:

views:

129

answers:

2

As .NET is framework for c# is there any framework for java? I mean whenever people talks about c#, .NET will be involved in that discussion but in case of java i didnt find as such.

+8  A: 

Java is already both a platform and a language. So there are standard libraries which come with J2SE (and other editions). It's slightly clearer in the .NET world, although people still regularly say C# when they mean .NET or vice versa :(

Oh, and JVM (Java Virtual Machine) ~= CLR (Common Language Runtime)

.NET was basically designed with multiple languages in mind, whereas the whole Java platform was designed to run Java; the fact that there are umpteen other languages running on it now (Scala, Groovy, Jython etc) is purely coincidental :)

Jon Skeet
Although arguably the JVM (Java Virtual Machine) is the execution framework - java is just a language that compiles down to JVM compatible bytecode. .Net has always had a more ingrained distinction though as it has been multi-language from the beginning
saret
@saret: The JVM isn't a framework - it's a VM. You need libraries to work with it before it becomes a framework, IMO.
Jon Skeet
@Jon - sorry didn't actually read the question properly, seems a little bit worded incorrectly. ".NET is framework for c#" - .Net is a bit all encompassing in this statement as this could include the BCL/JIT/CTS/CLR etc... what is Framework being refered to as here...?
saret
@saret, question seems to be asking about a "Framework Class Library"
matt b
+7  A: 

The Java Framework is the framework for the Java programming language.

TTT
Might want to link to the latest version, 1.6: http://java.sun.com/javase/6/docs/api/
matt b