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

does java support pointers?

933


What is type inference in java8?

976


What do you mean by ternary operator in java?

961


Which is better singleton or static class?

920


How do you create a method in java?

941


How does compareto method work?

911


What is the static import?

1045


What is a default constructor and also define copy contrucyor?

1046


What is initial size of arraylist in java?

992


what do you understand by synchronization? : Java thread

940


If I only change the return type, does the method become overloaded?

874


Why is the main method declared static?

1074


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

940


How objects are stored in java?

983


Can the garbage collection be forced by any means?

932