From C/C++ to JavaTM |
From C/C++ to Java is a tutorial in French to learn the Java programming language and its library.
The english version of From C/C++ to Java provides only this introduction and its table of contents.From C/C++ to Java describes the version 2 of Java. Similarities and differences between Java and the C and C++ programming languages are detailed, and concrete solutions are given for C/C++ concepts which are treated differently in Java (pointers, error treatment,...). Each class of the Java library 1.0 is described : basic classes, tools classes, streams classes, net access classes and Graphic User Interface AWT classes.
Finally, the tutorial ends with a course about Java 3D.From C/C++ to Java applies first to programmers, who knows C or C++, but also to people who are used to structured or object oriented languages (like PASCAL, SmallTalk, Visual Basic,...). The remarks about C/C++ and the traps to be avoided in Java are pointed out, to be found easily and allow a faster reading.
You can use this site as a course to learn programming Java applets and standalone applications, and as a quick reference manual of Java core and library. Many simple and original examples guide you from the classical HelloWorld to programming of more sophisticated applets, that you can test "live" in the site.
This course is divided into 26 chapters and its average size is 3 Mo (HTML files, images and applets).
To avoid any misunderstanding, all Java examples are compilation error free.
The Java language
The Java 1.0 library
Java extensions
Java applets
- How to download the JDK (Java Development Kit)
- Installation
- Java environment and commands
- Your first applet : the classical "Hello world !"
- Classes and interfaces declaration
- Variables declaration
- Methods declaration
- Objects creation : the new operator
- Overriding methods
- Destroying objects
- The class Object
- The class Class
- Arrays
- Strings
- The class String
- The class StringBuffer
- The class System
- Blocks
- if ... else, switch
- while, do ... while, for
- Expressions
- Operators
- Conversions (or casts)
- Operators priority
- throw, try, catch,...
- The class Throwable
- The Runtime exceptions
- The errors classes
- Others exceptions
- Thread definition
- Thread creation
- The different states of a thread
- Threads synchronization
- The class Thread
- Objects management
- Les classes d'emballage
- mathematical computing : the class java.lang.Math
- Threads management classes
- System management classes
Standalone applications and applets
- Java standalone applications
- Applets
- Linking applets with browsers
- Making an application from an applet
Containers and components layout
- Managing events
- The class Graphics : all you need to draw
- Fonts management
- Color
- Classes using dimensions
- Creating new components
Main Java applets of this tutorial
- Time counter
- HelloWorld
- Unicode characters list
- Multiple counters
- Chronometer
- Synchronized display of calculations
- Calculations observer
- Reading a file on Internet
- Internet shared paper board
- Applet controller
- Play piano
- Java components display
- Simple operation with two numbers
- Applet behavior
- Cut/Copy/Paste/Delete in a word processor
- Use of the class BorderLayout
- User interface builder GridBagBuilder
- Menu test
- Graphical editor
- Available fonts list
- Chart of colors
- Navigation bar with image buttons
- Negative filtering
- Counter filter
- Animated image
- Scrolling text
- Stars clock
- Applet3D
- CubeSides
- MultiCubes
- SimpleObjects
- Pyramid
- AxisShapeDemo
- HelloWorld3D
- ObjectFileDemo
- Clown
- SphereConstruction
- WaterGlass
- SimpleTexturedObjects
- LightEffect
- LitPlane
- LitApplet3D
- MouseApplet3D
- TextTranslation
- AlphaTest
- Clock3D
- SunEarthMoonMotion
Other applets available on this site
Jeks display Java Mine
Last modified on 02/22/2015 (version 1.3.2)
© Copyrights 1997-2023 eTeks - All rights reserved |