Answer Posted / haneef
public class Main {
public static void main(String[] args)
{
String str1="HANEEF";
for(int i=str1.length();i>0;i--)
{
System.out.print(str1.charAt(i-1));
}
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
What is the benefit of singleton pattern?
How many types of literals are there in JAVA?
Can a class have more than one object?
Name few "optional" classes introduced with java 8 ?
What is off heap memory?
How do you identify if jvm is 32-bit or 64-bit from java program?
What are actual parameters?
When is finally block not called?
What does mean in regex?
how would you implement a thread pool? : Java thread
How do you do descending order in java?
Which of the following is not an isolation level in the JDBC
How listener identify that the event came from a particular object?
What all access modifiers are allowed for top class ?