Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

can we add two numbers without using arthematic operators?
if possible how?

Answer Posted / anandhakrishnan

import java.io.*;
class add
{
public static void main(String args[])
{
int a = 6;
int b = 3;
System.out.println("sum of a and b is :: "+(a|b));
}
}

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do u mean by variable?

1055


Explain about the select method with an example?

1181


What is array sorting in java?

1060


Is an object null?

976


What is linked hashmap and its features?

1009


Why vector class is used?

993


What do you understand by looping in java? Explain the different types of loops.

1051


Whats the difference between notify() and notifyall()?

1041


What is the access scope of a protected method?

1033


How do I find and replace in word?

981


Is java pass by value or pass by reference?

996


What is palindrome in java?

994


What is java virtual machine? Explain

1034


What is the difference between the size and capacity of a vector?

1044


Can I override protected method in java?

1078