Java is a multiplatform language. Its motto is”write once, run everywhere” This is because it can run in many platforms like Windows, Linux, Unix, Macintosh, etc in a nutshell, on every platform where a JVM Java virtual Machine can be installed.

The first step is to download the JDK here (select JDK Java development Kit)

Java is an object oriented language wich is based on classes and methods. Let see before wqe start some of the object oriented programming concepts

What is a class?
A clase is a blueprint about how an object should be constructed

public class MyClass{}

What is an object?
An object is a software bundle that contains a state (variables) and a behaviour (methods or functions) An object of a given class must be instanciated before used the following way:

MyClass anObject = new MyClass();

What is inheritance?

Inheritance is a natural and powerful mechanism for organizing and structuring the software. Classes can inherit behaviour from its parent class.

What is an interface?

An interface is a contract within the class and the outside world. It tells what the class is supposed to do

Whay is a package?

A package is a namespace for organizing classes and interfaces in a logical way

to be continued

Frequently, web site designers need interactive artifacts for their sites like contact forms, to reach a database, etc. The way of handling it is throw a scripting server language like ASP, JSP or PHP. ASP is the Microsoft language (platform .NET). JSP belongs to java worls and PHP is a good free alternative of what is called LAMP applications: Linux – Apache – MySql and PHP

PHP Fundamentals

A PHP scripting block always starts with <?php and ends with ?>. A PHP scripting block can be placed anywhere in the document.

Below, we have an example of a simple PHP script which sends the text “Hello World” to the browser:
<html>
<body>
<?php
echo “Hello World”;
?>

</body>
</html>

 

Variables:

to be continue…