logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • When do you override hashcode and equals() ?


  • Correct Answer
  • HashCode method return int value So the Hash value is the int value returned by the hash function If you want to do equality check or want to use your object as key in HashMap, we must override hashcode and equals() method 

  • Tags: Analyst, IT Trainer

    Technology problems


    Search Results


    • 1. What is the difference between Serial and Throughput Garbage collector ?
    • Discuss
    • 2. What are the restriction imposed on a static method or a static block of code?
    • Discuss
    • 3. I want to print "Hello" even before main() is executed. How will you acheive that?
    • Discuss
    • 4. What is PHP?s configuration file called ?
    • Discuss
    • 5. What is the diff between RDO and ADO?
    • Discuss
    • 6. Which of the following are capabilities of functions in JavaScript?

    • Options
    • A. Accept parameters
    • B. Return a value
    • C. Accept parameters and Return a value
    • D. None of the above
    • Discuss
    • 7. Explain different layers which define cloud architecture
    • Discuss
    • 8. Which is the subset of SQL commands used to manipulate Oracle Database structures, including tables ?

    • Options
    • A. Data Manipulation Language(DML)
    • B. Data Definition Language(DDL)
    • C. Both A & B
    • D. None
    • Discuss
    • 9. What is webdynpro for ABAP ?
    • Discuss
    • 10. Which class provides an interface for invoking JavaScript methods and examining JavaScript properties.

    • Options
    • A. ScriptObject
    • B. JSObject
    • C. JavaObject
    • D. Jobject
    • Discuss


    Comments

    There are no comments.

Enter a new Comment