What will be the output of the following Java program?
class output
{
public static void main(String args[])
{
StringBuffer s1 = new StringBuffer(“Hello”);
StringBuffer s2 = s1.reverse();
System.out.println(s2);
}
}
a) Hello
b) olleH
c) HelloolleH
d) olleHHello
Answer: b
Explanation:
output:
olleH
Related Posts
Which of the following is the most complete cloud computing service model?
Rackspace Cloud Service is an example of _____________
Amazon Web Services offers a classic Service Oriented Architecture (SOA) approach to ______________
_______ provides virtual machines, virtual storage, virtual infrastructure, and other hardware assets.
__________ is the most refined and restrictive service model.
Which of the following can be considered PaaS offering?
Point out the wrong statement.
Join The Discussion