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
- What are the 3v’s of Big Data?
- Which layer is not in OSI but in TCP/IP
- Consider the array arr = [1, 2, 3, 4, 5] and the following operations: 1. arr.insert(2, 9) (inserts 9 at index 2) 2. arr.pop(3) (removes element at ind...
- In pandas, what does df.groupby('A').agg({'B': 'sum', 'C': 'mean'}) return?
- What is the time complexity for accessing an element at a specific index in an array?
- Perform a dry run of Binary Search for target = 29 in the sorted array [2, 12, 15, 17, 27, 29, 45]. What are the values of mid in each iteration until the ...
- What is the output of the following Java program? class Test { static int x = 5; static { x += 10; System.out.print(x+" "); } public static...
- Consider a singly linked list: 1 -> 2 -> 3 -> 4 -> None. If a delete_node(head, 3) function is called (which deletes the node with value 3), what will be t...
- What is the result of the following query if the Orders table has NULL values in the discount column for some rows? SELECT SUM(discount), COUNT(discou...
- 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?
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)