How did Java programmers not commit suicide using Date() from Java 1-7?
Monica Shiralkar wrote:I am trying to understand that either a language needs var which can be used to assign anything or either it needs String, Int , Char etc for the specific types. Buy why both?
Monica Shiralkar wrote:I am trying to understand that either a language needs var which can be used to assign anything or either it needs String, Int , Char etc for the specific types. Buy why both?
How did Java programmers not commit suicide using Date() from Java 1-7?
Campbell Ritchie wrote:Remembering that the relationship between Java® and JavaScript is the same as that between ham and hamster
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
When you use var, you're telling the compiler: "Please determine what the type of this variable is supposed to be, I'm good with whatever you say".
whyrell the compiler something it already knows? Also, when using an anonymous or dynamic type, the programmer doesn’t know the type name up front.Monica Shiralkar wrote:
When you use var, you're telling the compiler: "Please determine what the type of this variable is supposed to be, I'm good with whatever you say".
But what good does it do compared to directly telling the compiler that use this variable for string or use this variable for int.
How did Java programmers not commit suicide using Date() from Java 1-7?
Monica Shiralkar wrote:But what good does it do compared to directly telling the compiler that use this variable for string or use this variable for int.
why tell the compiler something it already knows? Also, when using an anonymous or dynamic type, the programmer doesn’t know the type name up front.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |