Please enable JavaScript.
Coggle requires JavaScript to display documents.
Java Ch1 (Learning Programming Terminology : (Static (Method is accessible…
Java Ch1
Learning Programming Terminology :
1.Machine code/Machine language : Basic set of instruction for computer to follow. Low level programming language
2.System software: program that manages the computer itself(Windows)
3.Application software: Preforms task for user(Calculating and producing paycheck)
4.High level programming language: Allows you to use vocabulary of reasonable terms(Read,write,add)
5.Debugging: Freeing program of all flaws or errors aka bugs
6.Logic error: Bug that allows the program to run but causes it to operate incorrectly(* instead of +)
7.Semantic errors: Misspelling a programming language word
Syntax errors: Typing errors
Static
Method is accessible and usable even though no object of the class exist
Void
Used in main method header. Indicates that the main method does not return any value when it is called
Comparing Procedural and Object-Oriented Programming Concepts
Procedural Programming
Style of programming where operations are executed one after another.
Operations are often grouped into logical units called procedures
a series of four or five calculations and comparisons that together determines a persons federal tax with holding can be grouped as a procedure called calculateFederalWithholding
When a program calls a procedure the current logic is temporarily abandoned so that the procedure's commands can execute
Procedure are also called modules,methods,functions and subroutines
Argument
Pieces of information that are sent into methods
Object-Oriented programming
It is an extension of procedural programming in which you take a slightly different approach to writing computer programs
It involves
Creating applications that manipulate or use those objects
Creating classes
Classes are blueprints for objects
A term that describes a group or collection of objects with common properties
Class definition describes what its object will have and what those objects will be able to do
Attributes are characteristics that define an object
They are properties of the object
inheritance is the ability to create classes that share the attributes and methods of existing classes, but with more specific features
Polymorphism(Many forms) is an important concept in object oriented terminology. It describes the feature of languages that allows the same word or symbol to be interpreted correctly in different situations based on the context.
Creating objects
Objects are specific instances of those classes
Used most frequently for 2 types of programs
Computer simulations
Attempt to mimic real world activities
So that their processes can be improved
So that users can better understand how the real world processes operate
Graphical user interface(Gui)
Allows the user to interact with the user in a graphical environment
Encapsulation
Object oriented classes, attributes and methods are encapsulated into objects
Refers to 2 closely related object oriented notions
Enclosure of data and methods within an object(Treat all of the object's methods and data as a single entity)
Concealment of object's data and methods from outside sources
Information hiding: Concealing data
Implementation hiding: Concealing how methods work
Java program types
Applets
Program that is embedded in a Web page
Java applications
It is a stand-alone program
Console application
Support character or text output to a computer
easier to create
Windowed application
Creates a GUI with elements such as menus,tool bars and dialog boxes
Java