Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Has Java changed much since 2001?

Tags:

java

I know that C++ simplified quite a bit since it was made, and im looking into teaching myself JAVA and have a book published in 2001, would i be handicapping myself if i learned a much older version?

by this i mean in C++, i noticed older books didn't run "using namespace std", it would instead use std:: everytime someone wanted to call a function from the library.

Thanks in advance!

like image 856
TimothyTech Avatar asked Nov 30 '25 01:11

TimothyTech


2 Answers

The fundamentals of Java haven't changed.

Things have been introduced that you need to be aware of:

  • Generics
  • Autoboxing
  • java.util.Concurrent package
  • string.split() vs StringTokenizer

there's others, and these have a very signifnicant impact on every-day Java development.

For the basics, though, an older book should be just fine. Just be aware of changes, like with any set of libraries, and adapt as necessary. Take what you read with a grain of salt, and when you find a better method (generics vs Objects everywhere, for instance) don't be afraid to replace methodoliges.

like image 138
corsiKa Avatar answered Dec 02 '25 13:12

corsiKa


Generics alone are reason enough to learn a later version. Many of the old idioms that generics replaced (e.g. cross-your-fingers-and-cast-to-Object) are now avoided.

like image 31
Thom Smith Avatar answered Dec 02 '25 13:12

Thom Smith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!