Why is reflection slower?



Why is reflection slower?..

Answer / Alok Ranjan

Reflection is slower because it involves runtime class loading, method invocation based on strings, and dynamic object creation. These operations require additional overhead compared to direct method invocations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

How to get the index of an array element?

1 Answers  


If you are given a choice to use either arraylist and linkedlist, which one would you use and why?

1 Answers  


Why do we need linked list?

1 Answers  


Define graph traversals?

1 Answers  


Why do we use collections?

1 Answers  


What is raid (redundant array of inexpensive disks)? Explain its level?

1 Answers  


Write an algorithm through which the inserting and deleting of elements can take place in circular queue?

1 Answers  


How many types of arrays are there?

1 Answers  


Why do we use stacks?

1 Answers  


What is tree in computer science?

1 Answers  


Can you use Bubble Sort To sort the number of elements.

1 Answers   iNautix,


What is an ordered map?

1 Answers  


Categories