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...

what is the output???????

public class multireturn
{
public(int assign x ( int x)
{
if(4==x)
{
return 7;
}
else if (7=x+3)
{
return 6;
}
return 5;
}
}

Answer Posted / amit singh

answer is that compile time error
because what you did i don't know what i saw i know
else if(7=x+3)
it not a condition you are using the assignment operator
in place of (7==x+3)
amitsing2008@gmail.com

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between iterator and enumeration ?

955


Which collection is thread safe in java?

937


Can a constructor be made final?

1050


How many threads can I run java?

1039


What is the dot operator?

942


What will be the default values of all the elements of an array defined as an instance variable?

985


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

986


What is the difference between static binding and dynamic binding?

1044


What methods are used to get and set the text label displayed by a button object?

956


In java, how we can disallow serialization of variables?

936


Does printwriter create a file?

910


Can we declare an array without size in java?

922


What is a void method?

880


What is the purpose of lambda expressions?

997


How many bits is a double?

944