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

Java support what type of parameter passing ?

Answer Posted / chandrarekha

all the primitive or the simple datatypes(int,float,boolean
etc) are passed as call by value whereas the abstract
datatypes(class objects) are by call by reference.....
for example...
class classA
{
String name;
}
class classB
{
classA a=new classA();
a.name="java";
call(a);//a is an object of classA
void call(classA x)
{
x.name="JAVA";
}
public static void main()
{
......

this is call by reference...

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a function easy definition?

1000


What is an i/o filter?

1792


How do you test a method for an exception using junit?

1196


what happens when a thread cannot acquire a lock on an object? : Java thread

1046


What do you understand by the term string pool?

996


What is constant in programming?

1100


What is the java reflection api? Why it’s so important to have?

970


What is a generic data type?

1026


Why string is a class?

929


Can we declare an array without size in java?

976


Which data type is class in java?

1001


How to calculate the length of a singly linked list in java?

1020


What does the @override annotation do?

1032


what do you mean by stream pipelining in java 8? Explain

1016


How to create a base64 decoder in java8?

1050