Question
What is the output of the following Java code? public class Test { public static void main(String[] args) { String s1 = "Java"; String s2 = new String("Java"); String s3 = s2.intern(); System.out.println(s1 == s2); System.out.println(s1 == s3); } }
More IT Operating System Questions
- An IPv4 packet has 3000-byte total length and must cross an MTU of 1000 bytes. With a 20-byte header, how many fragments are needed?
- What is the main purpose of disk scheduling in an operating system?
- A page has 2^12-byte size and a logical address is 32 bits. How many bits identify the page number?
- Which of the following conditions is essential for applying dynamic programming to a problem?
- Which type of cable is referred to as K-type or Category 5e/6 in network infrastructure, and what is its maximum standard data transfer rate for Category ...
- There is a BST and below is the Pre order of the BST, What will be it’s In order 150 70 60 80 250 200 350
- Frame relay :
- Which type of relationship does inheritance represent?
- Binary Search is an efficient searching algorithm that follows the Divide and Conquer approach. What is its time complexity?
- The following C++ code has a common inheritance-related issue. How can it be debugged to ensure the derived class constructor properly initializes the base...
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)