Hi Friend.. Doubt on +

Hi Friend.. Doubt on +

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:

Ads