Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary Types of Programming (JAVA)

Rating
-
Sold
-
Pages
2
Uploaded on
01-02-2021
Written in
2020/2021

All the types of programming in JAVA for a beginner in coding.

Institution
Course

Content preview

Programming Types
Unstructured Programming:
Non-structured programming is historically the earliest programming paradigm. In earlier days, the computer
program was a long list of commands. The lines were usually numbered or had labels. This allowed the flow of
execution to jump to any line in the program. Code fragments were reused by conditional and unconditional
branching of flow of execution i.e. using many goto statements. As the size of the program grew larger, these
jump statements, created very complex network of loops, producing hardly-readable code, which made it very
difficult to identify and fix the bugs.


Procedural Programming:
The situation was later improved by a technique called procedural programming. The logic of the program or
functionality was broken into small named code fragments performing a specific task called procedures (called
functions, methods or subroutines in other languages). The main program was separated from these procedures.
To write a program the procedures were invoked from the main program. All the data was placed globally in
one location and was accessed by all the procedures. Each procedure may have its own local data.


This procedure has two big advantages. Firstly, it was easy to correct errors. All we have to do is to go to that
procedure which is causing that problem and fix it up. You just have to check a small code fragment. Secondly,
if you find that a procedure is working and is reliable, you may reuse it any number of times.


Though the complexity of the program decreased, by this new technique, there was a problem when size of the
program grew very large. Firstly, there was lot of dependency among existing procedures. Change in one
procedure affected the other. Secondly, the global data modified by one procedure, affected the other procedure
too. It was very difficult to identify which data is used by which procedure. Thirdly, locating a procedure to
make a change was very difficult.


Modular Programming:
The situation was improved a little, by a technique called modular programming in which related procedures
were stored in named modules so that locating and maintaining a procedure becomes easier. Still the same
problem existed as the data was placed globally in one location and there was risk for bad coding. In all the
programming techniques discussed above, there was lack of data security.


Object Oriented Programming:
Finally, there was a revolution in the programming world by immergence of totally a new concept called Object
Oriented Programming. The main objective was to represent this real world into the computers using programs.
In real world, a class defines the properties and behaviour that will be shared by a set of objects. Each object of
a class contains the properties and exhibits the behaviour defined by the class. Thus, a class is a logical

Written for

Institution
Secondary school
Course
School year
4

Document information

Uploaded on
February 1, 2021
Number of pages
2
Written in
2020/2021
Type
SUMMARY

Subjects

$3.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
utkarshsrivastava

Get to know the seller

Seller avatar
utkarshsrivastava
Follow You need to be logged in order to follow users or courses
Sold
1
Member since
5 year
Number of followers
1
Documents
3
Last sold
5 year ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions