Question : You have been given below code. What value it is going to print (Assume it is in a class) 1. HadoopExam 0 HadoopExam 1 2. Null HadoopExam 0 Null HadoopExam 1 3. Access Mostly Uused Products by 50000+ Subscribers Null 4. A NullPointerException is thrown at runtime.
Correct Answer : Get Lastest Questions and Answer : Exp: The java.lang.StringBuilder.insert(int offset, char c) method inserts the string representation of the char argument into this sequence. The second argument is inserted into the contents of this sequence at the position indicated by offset. The length of this sequence increases by one. The offset argument must be greater than or equal to 0, and less than or equal to the length of this sequence.