Lesson 1: Introduction to OOP and Basic Components of Java
Polymorphism
Ability to exist in various forms.
open brace {
Begins the body of the program
Encapsulation
Capturing data and keeping it safely and securely from outside interface.
SUN (Stanford University Network) Microsystem
Developed Java
Class heading
Everything that you use must be a part of a class
Home Appliances
First version of Java aimed to program
1994
In this year, he realized that such a language would be ideal for use with web browsers and Java's 6 connection to the internet began.
James Gosling
Invented the Java programming language in 1994 and implemented the first Java compiler.
1991
Java, having been developed in what year
Message Passing
Objects communicates through invoking methods and sending data to them. This feature of sending and receiving information among objects through function parameters.
Oak
Orignal name of Java
1. Class name 2. Method main
Parts of a Java Program
1. Encapsulation 2. Inheritance 3. Polymorphism 4. Abstraction 5. Message passing
Some Features of OOP
Abstraction
The ability to represent data at a very conceptual level without any details. It hides information to other class.
Comments/ Doc comments
The program simply ignores any statements that are inside
Inheritance
This is the process by which a class can be derived from a base class with all features of base class and some of its own.it increases code reusability
Applet
a Java program that adheres to certain conventions that allow it to run within a Java-enabled browser.
Java application
a standalone program that runs directly on the Java platform.
variable declaration
always contains two components: the type of the variable and its name
Object-Oriented Programming
an extension of procedural programming in which you take slightly different approach to writing computer programs.
Java VM
base for the Java platform and is ported onto various hardware-based platforms
Final Variables
cannot change after it has been initialized.
Unicode
character-coding system designed to support text written in diverse human languages.
relational operator
compares two values and determines the relationship between them.
argument
consist of information that a method requires to perform its task.
Access modifier
defines the circumstances under which a class can be accessed.
variable's data type
determines the values that the variable can contain and the operations that can be performed on it
Java platform
differs from most other platforms in that it's a software-only platform that runs on top of other, hardware-based platforms
procedural program
executes each statement in the literal order of its commands,
blank final
final variable that has been declared but not yet initialized
main()
first method that java program executes
platform
hardware or software environment in which a program runs.
Java bytecode
help make "write once, run anywhere" possible
1995
in this year, Netscape Incorporated released its latest version of the Netscape browser which was capable of running Java programs
Java API
large collection of ready-made software components that provide many useful capabilities grouped into libraries (packages) of related components.
Static
little change or stationary or unchanging
Public access
most liberal type of access.
Variables
nouns of a programming language-that is, they are the entities (values and data) that act or are acted upon.
Expressions
perform the work of a Java program. perform the computation indicated by the elements of the expression and return some value that is the result of the computation.
Java
programming language to design applications for the Internet
Netscape Incorporated
released its latest version of the Netscape browser which was capable of running Java programs.
expression
series of variables, operators, and method calls (constructed according to the syntax of the language) that evaluates to a single value.
ternary operator
short-hand for an if-else statement operator evaluates expression and returns op1 if it's true and op2 if it's false.
Security features and Architecturally Neutral
some advantages that made Java became popular
procedural program
step-by-step program that guides the application through sequence of instructions.
Java applet
the most well-known Java programs
Java Bytecodes/bytecode
translate a Java program into an intermediate language called
