Aprendio sobre erorres en JAVA [ESP - ENG]

in voilk •  5 months ago

    Actualmente sigo aprendiendo Java de modo autodidacta y eta vez me dedique a prender a manejar errores, de manera sencilla y los tipos de errores que existen.
    Por el momento estoy aprendiendo “RuntimeExeptionError”, que son errores relaciones a la lógica de programación, como dividir por cero.

    Currently I am still learning Java on my own and this time I dedicated myself to learning how to handle errors in a simple way and the types of errors that exist. At the moment I am learning “RuntimeExeptionError”, which are errors related to programming logic, such as dividing by zero.

    error.jpg

    error1.jpg
    Para manejar los errores, es necesario utilizar un try catch, al igual que JavaScript se prueba la primera parte del código y si existe un error se debe capturar el tipo de error no a manera general como en JavaScript.

    To handle errors, it is necessary to use a try catch, just like JavaScript, the first part of the code is tested and if there is an error, the type of error must be captured, not in a general way as in JavaScript.
      Authors get paid when people like you upvote their post.
      If you enjoyed what you read here, create your account today and start earning FREE VOILK!