Reputation: 907
I've read a lot about java. And I couldn't understand what is the big difference between java and JavaFX is it just an extension of Java. Or is it actual native library. And what use does it have. As I've read JavaFX as the name says is good with effects and multimedia. But is it not possible to do that without JavaFX?
Upvotes: 0
Views: 105
Reputation: 3674
Java (as you probably already know) is a programming language.
JavaFX is a Java library for creating graphical user interfaces intended to run across multiple platforms, and is included in the Java platform. Programs that use the JavaFX toolkit are written in Java. It formerly included its own language (JavaFX Script) that compiled to Java bytecode, but this was dropped in version 2.0 of JavaFX.
To answer your comment, JavaFX includes both Java code and native code in C, C++, Objective-C, and Objective-C++. In fact, there are more native code files (including headers) than Java files. This was found by downloading the source here and searching for files with various extensions, using the following commands.
$ find | grep -P "\.java$" | wc -l
5907
$ find | grep -P "\.(c|h|cpp|cc|hpp|m|mm)$" | wc -l
8518
Upvotes: 2