Answer Posted / suswagata choudhury
public class Reverse {
public static void main(String args[]){
String s="SUSWAGATA";
StringBuffer sb=new StringBuffer(s);
System.out.println(sb.reverse());
}
}
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Explain the difference between extends thread vs implements runnable in java?
Why is string buffer better than string ?
What is stack class in java?
What do you understand by java virtual machine?
Which number is denoted by leading zero in java?
What is return code?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
Difference between final and effectively final ? Why is effectively final even required ?
What is the difference between super class & sub class?
How you can force the garbage collection?
Can we use this () and super () in a method?
What is set string?
What is anti pattern in cyber security?
What is ellipsis in java?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?