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 / sravanthi

Yes we can 2 numbers without using arthematic operator.
We can use logical operators instead of arthematic operator.
The ex program is
class A
{
public static void main(String a[])
{
byte a=5;
byte b=6;
int c;
c=a||b;
System.out.println(c);
}
}

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between serial and throughput garbage collector?

1152


What are anonymous inner classes?

1054


What is the default size of set in java?

1018


what is daemon thread and which method is used to create the daemon thread? : Java thread

1021


Why strings in java are called as immutable?

1039


What is the use of http-tunneling in rmi?

1103


Is assembly language a low level language?

1014


Is java a super set of javascript?

1151


What are multiple inheritances? Is it supported by java?

1003


What is an example of a boolean?

1117


How do you identify independent and dependent variables?

1069


Write a program to check for a prime number in java?

1089


What are different types of expressions?

1190


What are packages in java?

1791


Can main() method in java can return any data?

1236