Java Bangla Tutorials 141 : Exception handling (practical)

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Sir, onek kritoggota apnar proti....Dua kori jeno Allah apnake uttom protidan dan kore

eqramulhasantomal
Автор

Basic একদম ক্লিয়ার হয়ে গেলো। অসংখ্য ধন্যবাদ, স্যার। 😇

QueenOfEvil-
Автор

May allah reward you for your efforts !

raiyanreza
Автор

well done....apner tutorial dekhei midterm par korsi.

dicaprio
Автор

your explanation is very good than our versity teacher...thank u very much.may allah bless you

prottaybadhon
Автор

Jazakallahu khairan vaia. May Allah give you reward for your effort.

maroofraktim
Автор

I Like your all videos . Always take respect .

tushar_
Автор

Nothing to say.You are the best.
Love you boss <3

md.hasibulislam
Автор

Thank u, So Much Brother. For Your Good Knowledge Sharing.

sharifhossain
Автор

thank you for your hardwork helping us.

alliswell
Автор

package ExceptionHandling1;

public class ExceptionDemo {
public static void main(String[] args) {

try{

int x, y;
x = 10 ;
y = 0 ;
int result = x/y ;

System.out.println("The Result is : "+result);

}
catch(Exception e){
System.out.println("Exeption is : "+e);
}

finally{
System.out.println("Best of Luck");
}

}
}

tomabanik
Автор

watching and learning from US. Need advise for couple of issues.

smathiq
Автор

Assalamualaikum sir, Multi- Thread, Java fx niye kichu video dile help hoto onek.

sabbirhossain
Автор

Exception Program-1:

package ExceptionHandlingMethod;
import java.util.Scanner;
public class Exception1 {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
int num1, num2, result, r;
try
{
System.out.print("Enter first number:");
num1=input.nextInt();
System.out.print("Enter second number:");
num2=input.nextInt();
result=num1/num2;

}
catch(ArithmeticException e)
{
System.out.println("Exception Type:"+e);
}
finally
{
System.out.println("Finally block executes anyways.");
}
}
}


Exception Program-2:


package ExceptionHandlingMethod;
public class Exception2 {
public static void main(String[] args) {
try
{
int A[]=new int[5];
A[10]=100;
System.out.println(A[10]);
}
catch(ArithmeticException E1)
{
System.out.println(E1);
}
E2)
{
System.out.println(E2);
}
catch(Exception E3)
{
System.out.println(E3);
}
finally
{
System.out.println("This is
}
}
}

mdshamsulalammomin
Автор

package exceptionhanding;

public class Exception1 {

public static void main(String[] args) {

try {
int x = 10;
int y = 0;
int result = x / y;
System.out.println("Result = " + result);
} catch (Exception e) {
System.out.println("Exception = " + e);

} finally {
System.out.println("This is last line");
}
try {
int[] a = new int[4];
a[5] = 10;
} catch (Exception e) {
System.out.println("Exception : " + e);

} finally {
System.out.println("This is last line");
}
}

elorabarua
Автор

i need to know throw and throws handeling.Please make a video for that.

afreenjoarder
Автор

package exception;

public class Test {

public static void main(String[] args) {

try {
int x = 10;
int y = 0;
int result = x / y;
} catch (Exception e) {
System.out.println("Exception is : " + e);
} finally {
System.out.println("last line ");
}
}
}

nishatsultana
Автор

package exception;

public class Test {

public static void main(String[] args) {

try {
int[] a = new int[4];
a[4] = 10;
} catch (Exception e) {
System.out.println("Exception is : " + e);
} finally {
System.out.println("last line ");
}
}
}

nishatsultana
Автор

Sir, If I put two Exception cases at the same time. How can I handle this??

muhammahanisuzzaman
Автор

package exception_handaling;


public class E {
public static void main(String[] args) {
try{
int x = 10;
int y = 0;
int result = x/y;
System.out.println("Result : "+result);
e1){
System.out.println(e1);
}
catch(ArithmeticException e2){
System.out.println(e2);
}
System.out.println("Last line of the program");
try{
int [] a = new int[4];
a[9]=10;
System.out.println(a[9]);
}catch(Exception e3){
System.out.println("Exception : "+e3);
}

}
}

sitanath