How are java objects passed to a method and what are native methods?



How are java objects passed to a method and what are native methods?..

Answer / Dushyant Yadav

Java objects are passed by reference, meaning that the memory address of the object is passed, not the value of the object itself. Native methods are methods written in languages other than Java (usually C or C++) that can be called from Java code. They are used to access native libraries and provide a performance boost.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

what is business delegate?

2 Answers   TCS,


Explain about the performance aspects of core java?

1 Answers  


class A { private int i; } class B extends A { private int i; } if I create an object of B class what will be the memory of that object.

2 Answers   Yamaha,


How do you remove an object from an arraylist in java?

1 Answers  


What is percentage in java?

1 Answers  


what are the application of compiler and interpreter for source program

2 Answers  


what is polymorphism with example?types of polymorphism?

15 Answers   HP, Sigma Solve,


Why is multithreading important?

1 Answers  


What are the states of thread in java?

1 Answers  


What is the difference between Grid and Gridbaglayout?

1 Answers  


What are the procedures?

1 Answers  


what difference between throw and throws in exception handling.

5 Answers  


Categories