Everything in Java is passed “by value”.

Everything in Java is passed “by value”. Everything.

Pass-by-value
- When an argument is passed to a function, the invoked function gets a copy of the original value.
- The local variable inside the method declaration is not connected to the caller’s argument; any changes made to the values of the local variables inside the body of the method will have no effect on the values of the arguments in the method call.
- If the copied value in the local variable happens to be a reference (or “pointer”) to an object, the variable can be used to modify the object to which the reference points.

Some people will say incorrectly that objects are passed “by reference.” In programming language design, the term pass by reference properly means that when an argument is passed to a function, the invoked function gets a reference to the original value, not a copy of its value. If the function modifies its parameter, the value in the calling code will be changed because the argument and parameter use the same slot in memory…. The Java programming language does not pass objects by reference; it passes object references by value. Because two copies of the same reference refer to the same actual object, changes made through one reference variable are visible through the other. There is exactly one parameter passing mode — pass by value — and that helps keep things simple.

Published in: on November 20, 2007 at 12:27 pm Comments (1)
Tags: ,

Sawariya

Saawariya, based on novel ” White Nights”.

Story is simple and cute,a short love story of a guy.

The whole movie is in night background and looks like in Dreamy World.

The view of small city drawn in the movie is awesome. After all the columbia pictures has given their nice touch on creating it out.

Rabir Raj(Ranbir Kappor), a guy comes to small town as night club rock singer. While preparing for his first song in night, he meets Gulab(Rani Mukherjee).
Gulab who enjoy her night with late night drink. she likes him and starts calling her as ” Sawariya”, because of the first song he sang was sawariya
title song in the club.

One night he meets a beautiful lady, Sakina, as standing on a small brdige, crying and waiting for someone.
He helps her in getting back to her room and soon they become friends. He started loving her, but very soon he comes to know that she is waiting
for her love (Salman Khan )to come and take away with him,as they decided to meet on eed night.

Guy gets disheartened, but still hopefull till the end that sakina would be her for life. But the end is quite different, as not expected.

Salman khan in special appearence, but i dont hope Rani in special appearnece as most of the times she got her role in between.

Ranbir kapoor looks quite handsome, where Sonam Kapoor is toooo gorgeous and simply awesome.
Her acting is mature enough.

Movie “Black” most favourite seen is repeated in the movie, yes snow falling one.

After all one can see the picturization and say its Sanjay Leela Bhansali`s directed movie.

Published in: on November 11, 2007 at 10:35 am Comments (0)
Tags: , , ,