Christopher Smith wrote:


Java lacks from that list:
1) overloaded operators

OK, you got me there. I missed "operators" and threw in methods. :)
(but as Stewart pointed out, this is a good thing)

2) access to platform specific features (yes, you can use JNI but at
that point you aren't using Java)

Well, aside from JNI, there's the example of the COMM API and SerialIO API. There's also Java extensions allowing access to platform specific features.

3) destructors, and lexically scoped resource management in general

Yes, Java does. Look up finalize() for a destructor of an object. There are also ways to manage garbage collection outside of the automagical way Java normally handles it. Also look at java.lang.management (Java 1.5) for another way to handle resource management.

4) multiple inheritence

Java does provide for it. It is awkward to implement, but can be done through the use of interfaces and mixin classes. It is also very rarely needed.

5) fairly well defined performance costs

New profilers, tools, etc. for J2E have allowed much better methods of defining performance costs.


On top of that, it's support for generic programming is limited enough
that it's hard to use it effectively outside the context of collections.

I have not found it hard to use at all. In fact, I've found it much easier than 
C++.


So no, I didn't describe Java.


Damn near.

PGA
--
Paul G. Allen
Owner, Sr. Engineer, BSIT/SE
Random Logic Consulting Services
www.randomlogic.com

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to