java

S

Steven Bethard

Demo said:
What computer science concepts can I learn from Java and not from Python?

Mainly, things that derive from static typing:
* Method overloading
* Interface declarations (there are ways to simulate this in Python, but the
effect is not identical)
* Checked exceptions (though I'm not convinced this is really something you
need to learn)

I'm sure there are more, but these're what jumped into my mind. Can't say I
really miss any of them. ;)

Steve
 
D

David Cook

What computer science concepts can I learn from Java and not from Python?

Access control (e.g. private, public, protected).

There's also a certain pleasure in actually getting things to work in Java,
somewhat like the pleasure, I imagine, of building ships in bottles.

And I have to say there are some really nice open source Java projects like
Hibernate.

Dave Cook
 
P

Peter Hansen

David said:
There's also a certain pleasure in actually getting things to work in Java,
somewhat like the pleasure, I imagine, of building ships in bottles.

+1 QOTW.

-Peter
 
Y

Ype Kingma

David said:
Access control (e.g. private, public, protected).

There's also a certain pleasure in actually getting things to work in Java,
somewhat like the pleasure, I imagine, of building ships in bottles.

Yes, but these bottles are tidy.

Java's inner (sub)classes let you create an object of
another class, with a reference to the current object and
some (normally small) changes.
This allows to keep the definition of the other class tidy,
because there is no need to add features that will be
used in one place only.

And you can have anonymous inner classes, too.

Have fun,
Ype
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,675
Latest member
RollandKna

Latest Threads

Top