Jeevanandam Natarajamoorthy

Greenhorn
+ Follow
since Oct 22, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jeevanandam Natarajamoorthy

I have tried to install master exam from CD of K & B, I am getting some access violation error.
Any one has solution for that??!?!
This code if from K&B and page no:242.
class TestEx {
public static void main(String args[]){
doStuff();
}
static void doStuff() {
doMoreStuff();
}
static void doMoreStuff(){
int x = 5/0;
}
}
If i compile this code, i am getting compilation error. Bec. the arithmetic divison is hard coded. But the expected ans. is exception. It will happens only if i use the var. like int x = a/b; (a is some val & b is zero).
For such type of questions , what we have to answer.. like compilation error or runtime exception ??!?!.