COURSE NOTES CONTENT: A STEP BY STEP APPROACH TO WRITING CODES IN JAVA SE ON NETBEANS IDE (Integrated Development Environment)
ACRONYMS AND SIMPLIFIED TIPS AT UNDERSTANDING THE BASIC FUNDAMENTALS IN JAVA
SYNTAX OF CODES AND BYTECODES
NOTIFICATIONS OF VARIABLES, IT’S USES AND PURPOSE
OPERATORS AND OPERAND
BASIC FUNDAMENTALS
program: A set of instructions to be carried out by a computer.
program execution: The act of carrying out the instructions contained in a program.
programming language: A systematic set of rules used to describe computations in a format that is editable by humans.
SOME MODERN LANGUAGES
procedural languages: programs are a series of commands
Pascal (1970): designed for education
C (1972): low-level operating systems and device drivers
functional programming: functions map inputs to outputs
Lisp (1958) / Scheme (1975), ML (1973), Haskell (1990)
object-oriented languages: programs use interacting "objects"
Smalltalk (1980): first major object-oriented language
C++ (1985): "object-oriented" improvements to C
successful in industry; used to build major OSes such as Windows
Java (1995): designed for embedded systems, web apps/servers
Runs on many platforms (Windows, Mac, Linux, cell phones...)
The language taught in this textbook
WHY JAVA
Relatively simple
Object-oriented
Pre-written software
Platform independent (Mac, Windows…)
Widely used
#1 in popularity ie http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
First Java programs
Let us look at the classic Hello World! in Java with the comments /**,*/
/**
* * @author Majesty */ public class HelloWorld { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here System.out.println("Hello World!"); }
}
See