You are here:
| Expert | Average Ratings | Expertise |
|---|---|---|
Artemus HarperU.S.
Available
|
I have a BS in computer science and am working towards a Masters degree. | |
Neeraj A. ShahIndia
Available
|
You can ask me questions on core Java UI(esp. Swing), Java Desktop API sockets(synchronous & asynchronous), NIO, IO and channels, Nimbus, XML, Scripting, WebServices, JNI, Java Native Code etc. | |
Neal ZiringOn Vacation
returns 11/22/2009 |
Almost anything about the core Java platform, with an emphasis on networking. Not familiar with JDBC or the new Java graphics APIs. [Sun Certified Java Programmer, JDK 1.1] | |
Ziv Ben-EliahuIsrael
Maxed Out
|
I can answer questions relating to: Java language and usage, coding standards, application modeling and design (model driven development), unit/system testing, test driven development, algorithm complexity issues, Ant and XML-technologies. |
You are creating a new instance of Vehicle, not Vehicle2 as you have declared above. The compiler is probably using an older version of Vehicle before you changed the name and added the passengers field
Java will be a better choice as one of the primary focuses of Java is security. Most exploits in Java code will result in a Denial of service of attack. C++ on the other hand can result in arbitrary code
Hi Heni, Some years ago Java was solwer than C++. Now days, Java 1.6 can be faster than C++. Both Java and C++ might be slower than C, depending on the functionality. For certain functionality you can
To determine if a number is a power of 2 you can use the trick: if((n & -n) == n) { //power of 2 } else { //not power of 2 } You need to print segement sizes that match the bit of the size
1. I'm not sure what the ApplicationView class is. It is not a class in the standard Java API, so I cannot help you (nor do I know what your problem is). 2. The best way to do this is to have the code
Answers by Expert:

©2009 About.com, a part of The New York Times Company. All rights reserved.