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 is identifier give example?

974


How are this() and super() used with constructors in java programming?

1015


What is exception handling in java?

978


Can we have a try block without catch block?

942


What is the hashcode () and equals () used for?

955


What is immutable data?

992


What does it mean that strings are immutable?

1074


Is java call by reference?

923


What are white spaces in java?

977


State the main difference between c++ and java?

1034


Where import statement is used in a java program?

1077


What does void * mean?

954


What is final keyword in java?

969


What is difference between array and vector?

1044


What is the difference between multitasking and multithreading in Java

1131