Home / MCQ Bank / Computer
Computer Strings Difficulty: Medium

What will be the output of the following program? public class Test{ public static void main(String args[]){ String s1 = "java"; String s2 = "java"; System.out.println(s1.equals(s2)); System.out.println(s1 == s2); } }

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following C++ code? #include <iostream> using namespace std; class Car { public: int speed; }; int main() { int Car :: *pSpeed = &Car :: speed; Car c1; c1.speed = 1; cout << c1.speed << endl; c1.*pSpeed = 2; cout << c1.speed << endl; return 0; } Which machine learning algorithm is commonly used for sequence prediction tasks like weather forecasting and stock price prediction? Safari is a web browsing software developed by: Which of the following is correct order of working? When you use the $_POST variable to collect data, the data is visible to.