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

can you program for reverse string?

7 Answers   IBM,


What is Major and importance difference between for and foreach loop ?

0 Answers   Infosys,


I Have a class abstract with one abstract method, so that method should override in the subclass, but i dont want to override, if i am not override what will happen? If compilation will occur then i dont want to give compilation error, then what we need to do??? See the sample program. public abstract class AbstractExample { public abstract void sampleMethod(); } public class AbstractExampleImple extends AbstractExample { }

2 Answers   Mphasis,


How to create a fecelet view?

0 Answers  


What is the purpose of static methods and variables?

0 Answers  






Is an object null?

0 Answers  


wat is final...? wat is finally...? wat is finalize....? difference between " final and finally and finalize "...?

2 Answers  


Can an abstract class be a final class?

0 Answers  


suppose we have an interface & that interface contains five methods. if a class implements that interface then we have to bound that to give tha definition of all five methods in that class. If we declare that class as abstract then can we call only two methods to give the deinition of that method & i don't want to give the definition of all the methods? can it possible

6 Answers   HP, Wipro,


What is meant by nested loop?

0 Answers  


how to crate clint-server socket?

1 Answers   Accenture, Infosys, Infotech, TCS,


What is the access scope of protected access specifier?

0 Answers  


Categories