Answered Questions

  • Exception Handling

    what is the necessary for "throws" and "throw" in exception handling?? Even Though the exception has been thrown automatically and being handled by try and catch block..

    Suresh Jayaraman

    • Sep 23rd, 2011

    if we have different layers like Dataaccess layer,Business layer ,Presentation layer. The error is in DataAccess layer,that error should come to presentation layer and we can show that error in messa...

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

    A) TrueB) False

    ViBi

    • Apr 19th, 2015

    Two objects that are equal return hash codes that are equal. However, the reverse is not true: equal hash codes do not imply object equality, because different (unequal) objects can have identical hash codes

    https://msdn.microsoft.com/en-us/library/system.object.gethashcode%28v=vs.110%29.aspx

    regex

    • Apr 7th, 2015

    It is clearly false. Proof: "c class MyClass { public int _id; public MyClass(int id) { _id = id; } public bool Equals(MyC...