1.

String handling and find the output of Java program?

Answer»

String HANDLING and find the output of Java program?
Below is the syntax for handling string in java program by USING addition of string with numeric values.
class Teststring
{
public STATIC void MAIN (String args[])
{
System.out.println(40 + 30 + "crackyourinterview");
System.out.println("crackyourinterview" + 40 + 30);
}
}


And Output of above program is given below
70crackyourinterview
crackyourinterview4030



Discussion

No Comment Found