logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology See What Others Are Saying!
  • Question
  • What will be the output of the following code snippet? Object s1 = new String("Hello"); Object s2 = new String("Hello"); if(s1 == s2) { System.out.println("s1 and s2 are =="); }else if (s1.equals(s2)) { System.out.println("s1 and s2 are equals()"); }


  • Correct Answer
  • : s1 and s2 are equals() Explanation : 


  • More questions

    • 1. Someone who loans money is called

    • Options
    • A. Lender
    • B. Borrower
    • C. Investee
    • D. Investor
    • Discuss
    • 2. Cache events are processed when ever the Postback events occurs

    • Options
    • A. TRUE
    • B. FALSE
    • Discuss
    • 3. EXPLAIN has output with MATCHCOLS = 0. What does it mean?
    • Discuss
    • 4. The new product development process usually starts with

    • Options
    • A. idea generation
    • B. market strategy development
    • C. concept development
    • D. idea screening
    • Discuss
    • 5. How do you display last 5 records in DB2?
    • Discuss
    • 6. Managing the sales force : For a new salesperson, what are his training needs?
    • Discuss
    • 7. What is SPUFI?
    • Discuss
    • 8. How will u send data from a cobol file to db2 table?
    • Discuss
    • 9. What is buying forward?
    • Discuss
    • 10. What is Benchmarking?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment