News for hackers. Stuff that matters.
Re:Java is not a safe language by nikeee on Tuesday June 14, 2022 @02:48PM (#31744113)
I was under the impression that they compile with /checked per default. TIL!

Regardless of that flag, Math.Abs will throw an OverflowException: https://referencesource.microsoft.com/#mscorlib/system/math....

Re:Java is not a safe language by lazulicurio on Thursday June 16, 2022 @10:02AM (#31766160)
The default actually depends on project language IIRC. C# has overflow checking disabled by default, VB.net has it enabled by default. Not sure about F#.