logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What are pass by reference and pass by value ?


  • Correct Answer
  • When an object is passed by value, this means that a copy of the object is passed Thus, even if changes are made to that object, it doesn?t affect the original value When an object is passed by reference, this means that the actual object is not passed, rather a reference of the object is passed Thus, any changes made by the external method, are also reflected in all places 


  • Technology problems


    Search Results


    • 1. What is dynamic method dispatch?
    • Discuss
    • 2. What is the similarity between Dynamic Binding and linking?
    • Discuss
    • 3. What is Shallow and deep cloning in Java?
    • Discuss
    • 4. Why do we need wrapper classes in Java?
    • Discuss
    • 5. How does thread synchronization occurs inside a monitor?
    • Discuss
    • 6. Explain different ways of creating a thread. Which one would you prefer and why ?
    • Discuss
    • 7. What is the difference between processes and threads ?
    • Discuss
    • 8. What are the basic interfaces of Java Collections Framework ?
    • Discuss
    • 9. What do you know about the big-O notation and can you give some examples with respect to different data structures ?
    • Discuss
    • 10. What?s the difference between Enumeration and Iterator interfaces ?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment