Java is based on pass by reference or pass by value ..

Answer Posted / dheeraj pareek

Java is purely based on "Pass-by-value".
Variables are passed by value, and in case of Object, object reference is passed by value.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is constructor inherited?

524


Is multiple inheritance supported by java?

497


What are the different types of multitasking?

646


Which is the class in java?

510


What if static is removed from main method?

562






Do I need java for windows 10?

538


What is java argument list?

511


how would you implement a thread pool? : Java thread

499


What is a package in java? List down various advantages of packages.

744


What are the two types of java?

509


What do you mean by compiler?

569


Why we use protected in java?

524


What is an infinite loop in java? Explain with an example.

574


Explain try and catch keywords in java?

616


What is charat ()?

525