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 main advantage of passing argument by reference?



What is the main advantage of passing argument by reference?..

Answer / Sunil Kumar Rastogi

The main advantage of passing arguments by reference in Core Java (or any language that supports pass-by-reference) is that it allows modifying the original variable's value within a function. This can make the code more efficient and easier to manage, especially when dealing with complex data structures.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is public static void main?

1 Answers  


How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?

1 Answers   TCS,


What is the purpose of finalization?

4 Answers  


11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result? 1 B 2 The code runs with no output. 3 Compilation fails because of an error in line 12. 4 Compilation fails because of an error in line 15.

6 Answers  


Difference String and String Buffer

4 Answers  


What is the purpose of an interface?

1 Answers  


What java ide should I use?

1 Answers  


How do you add an element to a hashset in java?

1 Answers  


which class to use when concatenating strings in a loop.

3 Answers   IBM,


In a my eclipse editor if i want to switch from jdk 1.4 to jdk 1.6 how to do that???? Initially i have jdk1.4

1 Answers   Tech Mahindra,


Explain JMS in detail.

1 Answers   Amdocs,


What are disadvantages of java?

1 Answers  


Categories