Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #32949 > unrolled thread
| Started by | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| First post | 2015-10-27 19:42 -0400 |
| Last post | 2015-10-27 19:42 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.java.programmer
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Teaching "purely object-oriented" Java Arne Vajhøj <arne@vajhoej.dk> - 2015-10-27 19:42 -0400
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2015-10-27 19:42 -0400 |
| Subject | Re: Teaching "purely object-oriented" Java |
| Message-ID | <n0p265$5b5$1@speranza.aioe.org> |
On 10/27/2015 6:17 PM, Stefan Ram wrote:
> Some people complained that Java was not »purely
> object-oriented« because one is forced to use non-static
> methods. For example, in teaching Java, one has to write:
> I observe that - using the standard JDK - one now can
> write:
>
> public final class Main extends javafx.application.Application
> { public void start( final javafx.stage.Stage stage )
> { java.lang.System.out.println( "Hello world!" ); }}
Yes. New feature in Oracle Java 8.
> . Thus, now, we can teach Java right from the start without
> any static methods!
> (The program now does not terminate by itself, however,
> But sometimes one can live with this, or has to add
> »System.exit( 0 );«.)
Platform.exit() is better.
> (But I do /not/ use this in my own course, since I do not
> believe the static main method to be so bad for learners.)
The beginners are not looking for "pure OO", so I can not see
any problem using good old main.
And BTW todays fashion is multi-paradigm languages so "pure OO"
is old fashioned.
:-)
And it was never very practical anyway.
Arne
Back to top | Article view | comp.lang.java.programmer
csiph-web