Answer Posted / venki from hyd
class ReverseString
{
static String name="Hello";
public static void main(String args[])
{
String rname;
for(int i=name.length(); i<0; i--)
{
rname=name.charAt(i);
}
System.out.println(rname);
}
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is static and final keyword in java?
What does sprintf return?
Give few examples of final classes defined in Java API?
What data type is true or false?
give an example for encapsulation?
What does percent mean in java?
What occurs when an object is constructed?
What is the difference between procedural and object-oriented programs?
Should a main method be compulsorily declared in all java classes?
Is arraylist sorted in java?
What is java life cycle?
Explain the difference between the public, private, final, protected, and default modifiers?
What is the size of int?
Can a class with private constructor be extended?
How do you compare values in java?