× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: OO Programming?
  • From: "Larry Loen" <lwloen@xxxxxxxxxx>
  • Date: Sat, 20 Jan 2001 23:26:37 -0600
  • Importance: Normal


Aaron Bartell wrote:

> This question has been bugging me for some time now.  Here it is:
>
> Java is known as an OO programming language but RPG is considered
> procedural.  The other day I had a Java programmer explain to me that the
OO
> difference is not necessarily how you develop one program using a bunch
of
> different classes and objects but rather how they are stored in memory
when
> they are called.  Only one copy of a program is stored in memory in Java
and
> all programs making a call to that particular program are always
referencing
> that same one.

Your friend is incorrect.

It has been possible since the late sixties to have many jobs never mind
many
programs be able to call program X and have there be only one copy of X in
the entire system.

iSeries, AS/400 and even the System 38 _always_ worked this way, in fact.

There is a whole blizzard of ancient jargon like "reentrant" and "reusable"
and so on that applies to the "how many copies of the program" discussion.

If anything, a JITed Java program goes the other direction, where each JVM
has its own copy of the code for each class it loads.

This distinction your friend was describing has nothing whatever
to do with procedural versus object oriented programming.


Larry W. Loen  -   Senior Java and AS/400 Performance Analyst
                          Dept HP4, Rochester MN


+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.