Introduction to Computer Programs and Java
Introduction to Computer Programs and Java
Bus
Bus
Bus
Bus
BASIC Beginner’s All-purpose Symbolic Instruction Code. It was designed to be learned and used easily by
beginners.
C Developed at Bell Laboratories. C combines the power of an assembly language with the ease of use
and portability of a high-level language.
C++ C++ is an object-oriented language, based on C.
C# Pronounced “C Sharp.” It is a hybrid of Java and C++ and was developed by Microsoft.
COBOL COmmon Business Oriented Language. Used for business applications.
FORTRAN FORmula TRANslation. Popular for scientific and mathematical applications.
Java Developed by Sun Microsystems, now part of Oracle. It is widely used for developing platform-
independent Internet applications.
Pascal Named for Blaise Pascal, who pioneered calculating machines in the seventeenth century. It is a
simple, structured, general-purpose language primarily for teaching programming.
Python A simple general-purpose scripting language good for writing short programs.
Visual Basic Visual Basic was developed by Microsoft and it enables the programmers to rapidly develop graphical
user interfaces.
http://www.java.com/en/javahistory/index.jsp
https://liveexample.pearsoncmg.com/etc/JavaCharacteristics.pdf
Copyright © 2024 Pearson Education, Inc. All Rights Reserved
Characteristics of Java (2 of 12)
• Java Is Simple* *Java is partially modeled on
• Java Is Object-Oriented C++, but greatly simplified and
• improved. Some people refer to
Java Is Distributed
Java as “C++--” because it is
• Java Is Interpreted like C++ but with more
• Java Is Robust functionality and fewer negative
• Java Is Secure aspects.
• Java Is Architecture-Neutral
• Java Is Portable
• Java's Performance
• Java Is Multithreaded
• Java Is Dynamic
Copyright © 2024 Pearson Education, Inc. All Rights Reserved
Characteristics of Java (3 of 12)
• Java Is Simple *Java is inherently object-oriented.
Although many object-oriented
• Java Is Object-Oriented* languages began strictly as procedural
• Java Is Distributed languages, Java was designed from the
start to be object-oriented. Object-
• Java Is Interpreted oriented programming (OOP) is a
• Java Is Robust popular programming approach that is
replacing traditional procedural
• Java Is Secure programming techniques.
• Java Is Architecture-Neutral
One of the central issues in software
• Java Is Portable development is how to reuse code.
Object-oriented programming provides
• Java's Performance
great flexibility, modularity, clarity, and
• Java Is Multithreaded reusability through encapsulation,
inheritance, and polymorphism.
• Java Is Dynamic
Copyright © 2024 Pearson Education, Inc. All Rights Reserved
Characteristics of Java (4 of 12)
• Java Is Simple *Distributed computing
• Java Is Object-Oriented involves several computers
• working together on a
Java Is Distributed*
network. Java is designed to
• Java Is Interpreted make distributed computing
• Java Is Robust easy. Since networking
• Java Is Secure capability is inherently
• Java Is Architecture-Neutral integrated into Java, writing
network programs is like
• Java Is Portable sending and receiving data to
• Java's Performance and from a file.
• Java Is Multithreaded
• Java Is Dynamic
Copyright © 2024 Pearson Education, Inc. All Rights Reserved
Characteristics of Java (5 of 12)
• Java Is Simple *You need an interpreter to
• Java Is Object-Oriented run Java programs. The
• programs are compiled into
Java Is Distributed
the Java Virtual Machine
• Java Is Interpreted* code called bytecode. The
• Java Is Robust bytecode is machine-
• Java Is Secure independent and can run on
• Java Is Architecture-Neutral any machine that has a Java
interpreter, which is part of
• Java Is Portable the Java Virtual Machine (J V
• Java's Performance M).
• Java Is Multithreaded
• Java Is Dynamic
Copyright © 2024 Pearson Education, Inc. All Rights Reserved
Characteristics of Java (6 of 12)
• Java Is Simple *Java compilers can detect
• Java Is Object-Oriented many problems that would
• first show up at execution
Java Is Distributed
time in other languages.
• Java Is Interpreted
• Java Is Robust* Java has eliminated certain
types of error-prone
• Java Is Secure
programming constructs
• Java Is Architecture-Neutral found in other languages.
• Java Is Portable
Java has a runtime
• Java's Performance exception-handling feature
• Java Is Multithreaded to provide programming
• Java Is Dynamic support for robustness.
Welcome Note: Clicking the green button displays the source code with
interactive animation. You can also run the code in a browser.
Internet connection is needed for this button.
WelcomeWithThreeMessages
ComputeExpression
End-of-line
style
public class Test {
public static void main(String[] args) {
System.out.println("Block Styles");
}
}
ShowSyntaxErrors
ShowRuntimeErrors
ShowLogicErrors