-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCalls.java
More file actions
39 lines (36 loc) · 757 Bytes
/
Calls.java
File metadata and controls
39 lines (36 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
public class Calls {
static void db() throws ArithmeticException{
try{
System.out.println("Connection Open...");
//int e = 10/0;
if(10>2){
System.exit(0);
//return ;
}
System.out.println("Query Executed...");
}
finally{
System.out.println("Connection Close");
}
}
static void bl() throws ArithmeticException{
System.out.println("BL Start");
db();
System.out.println("BL End");
}
static void ui(){
System.out.println("Screen Open..");
try{
bl();
}
catch(ArithmeticException e){
System.out.println("Some Problem Occur Try After Some time...");
e.printStackTrace();
}
System.out.println("Screen Close");
}
public static void main(String[] args) {
// TODO Auto-generated method stub
ui();
}
}