In this task and in others I used the methods getMonth(), etc as explained in previous lessons, but when I read the documentation of Java SE 8 I found out that all those methods are "deprecated" and that we should use the Calendar class and its methods.
So maybe this lessons should be re written or what does "deprecated" actually means?
Date.getMonth() and other functions are deprecated?
Resolved
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Hashirama
21 January 2019, 20:48
Yes they are, but... they still work... so... use'em.
+2
Guadalupe Gagnon
20 January 2019, 05:05useful
Learning legacy code is not a bad thing. If you start working as computer programmer a large part of your job won't be creating new projects, it will be updating legacy code. If you don't even know how the code works, how do you expect to be able to find a job?
+1