
Java is a programming language (♦ see DEF) multiplatform and object oriented, created in 1995. The Oracle company owns the Java technology, after having bought it from Sun Microsystems.
Java allows you to create, among other things, Web App. and websites, software and games .
Code Examples
Let's start with very simple codes. The more you progress, page after page, the more sophisticated the scripts will be. However, you must pass the cape of 30 to 40 pages per level, before moving on to the next step... COPY AND IMMERSE YOURSELF!
C 0001 - Hello World !
Reproduce this code (please do not copy-paste!). Watch out for the indentation !
public class Main { public static void main(String[] args) { System.out.println("Hello World !"); } }
Reproduce this code, choosing one of the compilers below (♦ see DEF) (don't copy-paste! It would be too easy). They have the same function, just pick up one according to your preferences.
When you copy your code, replace the existing code (by default) with your own.
Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !
C 0002 - Variables
Reproduce this code (please do not copy-paste!). Watch out for the indentation !
public class Main { public static void main(String[] args) { String name = "John"; System.out.println(name); } }
Reproduce this code, choosing one of the compilers below (♦ see DEF) (don't copy-paste! It would be too easy). They have the same function, just pick up one according to your preferences.
When you copy your code, replace the existing code (by default) with your own.
Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !
C 0003 - Types of informations
Reproduce this code (please do not copy-paste!). Watch out for the indentation !
public class Main { public static void main(String[] args) { int myNum = 10; // Integer float myFloatNum = 3.99f; // Floating point char myLetter = 'F'; // Character boolean myBool = true; // Boolean String myText = "Bonjour tout le monde !"; // String System.out.println(myNum); System.out.println(myFloatNum); System.out.println(myLetter); System.out.println(myBool); System.out.println(myText); } }
Reproduce this code, choosing one of the compilers below (♦ see DEF) (don't copy-paste! It would be too easy). They have the same function, just pick up one according to your preferences.
When you copy your code, replace the existing code (by default) with your own.
Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !
C 0004 - Declarations and Statements
Reproduce this code (please do not copy-paste!). Watch out for the indentation !
public class Main { public static void main(String[] args) { int x = 60; int y = 28; if (x > y) { System.out.println("x is bigger than y"); } } }
Reproduce this code, choosing one of the compilers below (♦ see DEF) (don't copy-paste! It would be too easy). They have the same function, just pick up one according to your preferences.
When you copy your code, replace the existing code (by default) with your own.
Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !
Java Technical Specifications
Most Recent Versions
Frameworks
Tools And Methodologies
Testing
Info+ (Java)
* Created by James Gosling and Patrick Naughton (Sun Microsystems)
* Developped by Oracle Corporation
* Influenced by Objective C, C++ and UCSD Pascal
* Cross-platform
* GNU GPLV2+CPE licence
Tools+ (Java)
Practical Cases
CASE 1
BASIC LEVEL
Prepare the work environment
These recommendations will allow you to start as comfortably as possible with Java.
CASE 2
ADVANCED LEVEL
Create a Web App.
This small kit will allow you to design a Web. App. in the field of online booking sales.
CASE 3
News
- Java
- Hits: 257