Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Hi Friend.. Doubt on +

Have Programming Question? Ask it here!
 
 
 


SakthiPrabhu.g
Hi Friend.. Doubt on +
1 Answer(s)      5 years and 4 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:
 

 

 

DMCA.com