Professional Documents
Culture Documents
machine language.
Assembly language: processor dependent, instructions are easier to create. Assembler
can translate the program to machine codes.
High level languages: processor independent
o Compiler: translates a complete program into object code and then create an
executable file. E.g. C++, Visual Basic.
o Interpreter: translate one instruction at a time at the program execution. For
example, JavaScript, Python, PHP.
Java Programming language: first released in 1995 by Sun Microsystem ( now Oracle); run on
various operating systems; 1998- Java 2; 2006 Java SE 6 2011 Java SE 7 2014 Java SE 8
HelloWorld.java
public class HelloWorld
{
public static void main(String[] args)
{
String message = "Hello World";
System.out.println(message);
}
}
Syntax: the set of rules that defines how declarations, functions, commands, and other
statements should be arranged. Spelling and Grammar rule of a programming language
3. Give a name to your project, browse to a folder where you want your
project to be created and leave create main class and set as main
4. You should see an open file with Main.java to start typing in your code
Practice
Fill in the Blank in the following questions:
1. Who first created Java Programming language?_______________
2. What type of application Java programming language can create: Stand Alone, _____,
3.
4.
5.
6.
_______.
What is the IDE stand for: _________________________________________________.
Other IDE for Java Programming: ______________________________________.
Name two programming language that use complier:_____________, _______________.
Name three programming language that use interpreter: _________, ___________,
_________.
7. Does Java programming language use compiler, interpreter, or both?
8. How to add comment document into program code?
Programming exercise:
Create the first program that prints out:
Welcome to summer CST1201 Java Programming class