Why is it a bad idea to throw your own exceptions? ,Java, C ,C++, ASP, ASP.net C# ,Struts ,Questions & Answer, Struts2, Ajax, Hibernate, Swing ,JSP , Servlet, J2EE ,Core Java ,Stping, VC++, HTML, DHTML, JAVASCRIPT, VB ,CSS, interview ,questions, and answers, for,experienced, and fresher
Why is it a bad idea to throw your own exceptions?

More interview questions and answers

On which standard C# based?

What�s the difference between const and readonly?

What�s the difference between const and readonly?

What is the difference about Switch statement in C#?

What is the difference between a static and an instance constructor?

What is the difference between a static and an instance constructor?

In which cases we use override and new base?

In which cases we use override and new base?

You have one base class virtual function how will you call the function from derived class?

You have one base class virtual function how will you call the function from derived class?

Can you call a base class method without creating instance?

Can we call a base class method without creating instance?

What is Method Overriding? How to override a function in C#?

What is Method Overriding? How to override a function in C#?

What is an interface class?

What happens if we inherit multiple interfaces and there is conflicting method names?

What happens if we inherit multiple interfaces and there is conflicting method names?

Why can we not specify the accessibility modifier for methods inside the interface?

Why can we not specify the accessibility modifier for methods inside the interface?

What are the different ways a method can be overloaded?

How do you mark a method obsolete?

How do you mark a method obsolete?

What is a sealed class?

What is a sealed class?

How do you prevent a class from being inherited?

How do you prevent a class from being inherited?

Can you inherit from multiple base classes in C#?

Can you inherit from multiple base classes in C#?

What is the use of fixed statement?

What is the use of fixed statement?

What is the order of destructor called in a polymorphism hierarchy?

What is the order of destructor called in a polymorphism hierarchy?

What is a virtual method?

What is a virtual method?

Is it possible to Override Private Virtual methods?

Is it possible to Override Private Virtual methods?

Can I call a virtual method from a constructor/destructor?

Can I call a virtual method from a constructor/destructor?

How do I declare a pure virtual function in C#?

How do I declare a pure virtual function in C#?

Are all methods virtual in C#?

Are all methods virtual in C#?

Are C# destructors the same as C++ destructors?

Are C# destructors the same as C++ destructors?

Are C# constructors the same as C++ constructors?

Are C# constructors the same as C++ constructors?

Can you declare a C++ type destructor in C# like ~ClassName()?

Can you declare a C++ type destructor in C# like ~ClassName()?

How do you handle errors in VB.NET and C#?

How do you handle errors in VB.NET and C#?

Why is it a bad idea to throw your own exceptions?

Why is it a bad idea to throw your own exceptions?

How to declare a two-dimensional array in C#?

How to declare a two-dimensional array in C#?

How can you sort the elements of the array in descending order?

What�s the difference between the System.Array.CopyTo() and System.Array.Clone()?

How does one compare strings in C#?

How does one compare strings in C#?

Where we can use DLL made in C#.Net?

Where we can use DLL made in C#.Net?

If A.equals(B) is true then A.getHashcode & B.gethashcode must always return same hash code.

If A.equals(B) is true then A.getHashcode & B.gethashcode must always return same hash code.

Is it possible to debug the classes written in other .Net languages in a C# project?

Is it possible to debug the classes written in other .Net languages in a C# project?

Does C# has its own class library?

Does C# has its own class library?

IS it possible to have different access modifiers on the get/set methods of a property?

IS it possible to have different access modifiers on the get/set methods of a property?

Is there an equivalent of exit() or quiting a C#.NET application?

Is there an equivalent of exit() or quiting a C#.NET application?

What optimization does the C# compiler perform when you use the optimize and compiler option?

What optimization does the C# compiler perform when you use the optimize & compiler option?

Is goto statement supported in C#?

IS goto statement supported in C#?How about Java?

What happens when you encounter a continue statement inside for loop?

Write one code example for compile time binding and one for run time binding.

Write one code example for compile time binding and one for run time binding.

What is output of following program when we compile and run it? void main() { int const * p=5; printf("%d",++(*p)); }

What is output of followingvoid main(){char ch;for(ch=0;ch<=127;ch )printf("%c %d \n", ch, ch);}

Is this code legal? int *ptr; ptr = (int *) 0x400;

What is output of following? main() { char s[ ]="man"; int i; for(i=0;s[ i ];i++) printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]); }

What is output of following?? main() { float f1 = 1.0; double f2 = 1.0; if(f1==f2) printf("I love U"); else printf("I hate U"); }

What is output of following main() { char a[4]="HELLO"; printf("%s",a); }

What is output of following? main() { char a[4]="HELL"; printf("%s",a); }

What is output of following? main() { int a=10,*j; void *k; j=k=&a; j++; k++; printf("\n %u %u ",j,k); }

What values are printed when we run following? main() { static int var = 5; printf("%d ",var--); if(var) main(); }

how to print this : 1 11 121 1331 14641 using for loop?

What is the difference between == & .equals().

What is the difference between abstract class & Interface.

What is singleton class & how you can implementation it?.

What is use of static, final variable?

Examples of final class.

What is difference between Event propagation & Event delegation?

What is difference between Unicast & Multicast model?

What is a java bean?

What is use of synchronized keyword?

What are the restrictions of an applet & how to make the applet access the local machines resources?

What is reflect package used for & the methods of it?

What is use of serialization?

Can methods be overloaded based on the return types ?

R4R provides free online tutolrails ,examples for Freshers and experts .We cover core java, tutorials, spring, Hibernate, python, struts, struts 2,c language, spring boot,PHP,MYSQL,C#,ASP.NET,WPF,WCF,Photoshop , JSP, programming, example, Interview questions and answer