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
Give me an example of array and linked list? Where they can be used?
What is the function of compareto in java?
How can we pass argument to a function by reference instead of pass by value?
Why java is called not pure object oriented language?
What does string intern() method do?
What’s the difference between constructors and other methods?
What are the types of literals?
What does the “final” keyword mean in front of a variable? A method? A class?
What is a lightweight component?
Is this valid in java ? Can we instantiate interface in java?
How many decimal places is a double?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
How do singleton patterns work?
what do you understand by the term string with respect to java?
What is continuity of a function?