logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • 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 : 


  • Technology problems


    Search Results


    • 1. What is classloader?
    • Discuss
    • 2. What is the difference between method overriding and overloading?
    • Discuss
    • 3. If a method is declared as protected, where may the method be accessed?
    • Discuss
    • 4. What do you understand by private, protected and public?
    • Discuss
    • 5. What is Thread ?
    • Discuss
    • 6. What is JDBC ?
    • Discuss
    • 7. What is DriverManager ?
    • Discuss
    • 8. What is a ResultSet ?
    • Discuss
    • 9. What are the different JDBC drivers available ?
    • Discuss
    • 10. Is the JDBC-ODBC Bridge multi-threaded ?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment