Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
General Awareness
→
IIT JEE in General Awareness
→
State a difference between call by value and call...
1.
State a difference between call by value and call by reference.
Answer»
Call by value
Call by Reference
(i) In call by value the method creates its new set of variables (formal parameters) to copy the value of actual parameters and works with them.
(i) In call by reference, reference of the actual parameters is passed on to the method. No new set of variables is created.
(ii) Any change made in the formal parameter is not reflected in the actual parameter.
(ii) Any change made in the formal parameter is always reflected in the actual parameters.
(iii) Primitive data types are passed by call by value.
(iii) Reference types like (objects, array etc.) are passed by call by reference.
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
A plant is kept in a dark cupboard for about 48 hours before conducting any experiment on photosynthesis to :(A) Remove starch from the plant. (B) Ensure that starch is not translocated from the leaves. (C) Remove chlorophyll from the leaf of the plant. (D) Remove starch from the experimental leaf.
The producer of Lime Fresh’ tea introduces ‘Buy one Get one’ scheme on all the products of ‘Lime Fresh’. Identify the promotional strategy’ used by the producer. State any one objective that could be met by this strategy.
A stringed musical instrument, such as the sitar,is provided with a number of wires of different thicknesses. explain the reason for this.
Mention whether the following would result in inflow, outflow or no flow of cash :(i) Issue of fully paid Bonus Shares (ii) Cash withdrawn from Bank
State with reason whether the following would result in inflow, outflow or no flow of cash :(i) Charging depreciation on furniture. (ii) Cash withdrawn for bank for office use.
Give four points of anatomical differences between a monocot stem and a dicot stem.
State the conditions required for total internal reflection of light to take place.
State the conditions required for total internal reflection of light to take place.
(i) When does a ray of light falling on a lens pass through it undeviated ? (ii) Which lens can produce a real and inverted image of an object ?
When acoustic resonance takes place a loud sound is heard. Why does this happen ? Explain.
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies