SakthiPrabhu.g
Hi Friend.. Doubt on +
1 Answer(s)      6 years and 6 months ago
Posted in : Java Beginners
Advertisement
View Answers

February 5, 2009 at 5:45 AM


Hi friend,

import java.io.*;
class Plus{
public static void main(String args[]){
int a=10;
int b= 25;

System.out.println("A = " + a + " B = " + b + " Plus = " + a + b);

//WHAT DOES + (PLUS) MEAN IN THE ABOVE STATE MENT :
//W
}
}


Output:
C:\>javac Plus.java

C:\>java Plus
A = 10 B = 25 Plus = 1025









Related Tutorials/Questions & Answers: