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

Can a class extends itself in java?

1018


Is java a super set of javascript?

1097


What does @override mean?

1195


What is the use of list in java?

982


What do you mean by constant time complexity?

1226


This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

985


How do you remove spaces in java?

1029


How many types of the indexof method are there for strings?

969


Can finally block be used without a catch?

1005


What is meant by inheritance and what are its advantages?

1096


Differentiate storage classes on the basis of their scope?

1171


When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

1027


What is private static in java?

1039


Is boolean a data type in java?

961


Which graphs are functions?

966