#java #tutorial #programming #programmers #programação
#titorial #computerscience #computerknowledge #geeks #usa #uk #india #australia #canada #education #southafrica
Lesson 30 - Data Types - wraparound part 4 - Writing your own method on Overflow
As we saw in the last lesson, if we want a RuntimeException
on overflow instead of the values wrapping around
we can make use of the Math.xxxExact methods introduced in
Java 8.
If we type Math.addExact tab x2 and we can see there are two
overridden methods one returning an int and the other a long
Now what if we want to use the byte or short, but want
an exception at Runtime on overflow?
Welcome to lesson 30, part four .
📹 Links
==========
This video link - • Lesson 30 - Data Types #java #programming...
Source code - https://www.dropbox.com/s/72zrwqjlr5p...
youtube channel / canal do Youtube
/ @pcpwjoao
🇬🇧 English Playlists
-----------------
📼 A greenhorn's guide - • A greenhorn's guide to Java
📼 JShell - • JShell
📼 Exceptions - • Exceptions
🇵🇹 Listas de reprodução portuguesas
---------------------------------
📼 Guia de um novato para Java - • Guia de um novato para Java
📼 JShell - • JShell (Portuguese)
📼 Exceoptions - • Exceptions (Português)
☻ FaceBook 📖
================
/ pcpwjoao
java basics for beginners,java tutorials for beginners,
java tutorials,
java , programming,
maths, mathematics,
Integer.MIN_VALUE,Integer.MAX_VALUE,
Long.MAX_VALUE,Long.MIN_VALUE,
Byte.MAX_VALUE,Byte.MIN_VALUE,
Short.MAX_VALUE,Short.MIN_VALUE,
Character.MAX_VALUE, Character.MIN_VALUE,
L,l, Java 9, jshell, wraparound, underflow, under-flow,
overflow, over-flow, wrap-around, java.math, BigInteger,
JShell, java.lang.RuntimeException, RuntimeException
Информация по комментариям в разработке