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

How hashmap works in java?

1088


What is data type in computer?

999


What is super constructor?

1052


If a method is declared as protected, where may the method be accessed?

1066


Why are pointers not secure?

1074


Is there any tag in htm to upload and download files?

1086


do I need to use synchronized on setvalue(int)? : Java thread

1052


Is it possible for yielded thread to get chance for its execution again ?

1082


How use .contains in java?

1226


Can the interface be final?

1063


Explain about the security aspect of java?

1012


Why do we use variables?

1043


Describe the various concepts related to object oriented programming (oop).

1082


What is a pointer and does java support pointers?

1061


What is a variable analysis?

1139