How do you test a method for an exception using junit?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

0 Answers  


When will we use them?

0 Answers  


What is java thread dump, how can we get java thread dump of a program?

0 Answers  


What’s the difference between applets and standalone program?

0 Answers  


What are the four pillars of java?

0 Answers  






What are checked exceptions?

0 Answers  


Does constructor return any value?

0 Answers  


Is arraylist sorted in java?

0 Answers  


What are the procedures?

0 Answers  


How we can execute any code even before main method?

0 Answers  


what is meant by serialization?

7 Answers  


What is are packages?

0 Answers  


Categories