K
Q. What is the output of the following code snippet?
String s1 = “Hello”; System.out.println(sA)substring(1, 4));
The substring method in Java can also take two arguments, specifying a start index and an end index for the substring. The substring returned includes the character at the start index, but not the character at the end index. In this case, sA)substring(1, 4) returns “Hel”, which is the substring of s1 starting from index 1 and ending at index C)
You must be Logged in to update hint/solution
Q. How is Date stored in database?
Q. What is the output of a Java Program with Shift Right Fill Zeroes (>>>) operator?
Q. Which of these is true for interfaces in java?
Q. Which classes are used for connection less socket programming?
Q. What will be the output of following Java code?
Q. Choose the correct usage of boolean literal in the options below.
Discusssion
Login to discuss.