Is java code slower than native code?



Is java code slower than native code?..

Answer / Santosh Prasad

In general, Java code can be slower than native code because it is interpreted (converted to machine code at runtime) rather than compiled directly into machine code. However, the difference in speed has become less significant over time due to JIT compilers, which compile frequently-used Java methods into native code.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

In what circumstances, compiler will supply a default constructor for a class?

4 Answers  


what is the difference between HashMap and Hashtable

17 Answers   Value Labs, Virtusa,


What is class array in java?

1 Answers  


explain local datetime api in java8?

1 Answers  


Why singleton pattern is better than creating singleton class with static instance?

1 Answers  


What are the parts of a method?

1 Answers  


What are Brief Access Specifiers and Types of Access Specifiers?

1 Answers  


Difference between overloading and overridding?

4 Answers  


What is the use of StringTokenizer class?

1 Answers   Hexaware, Virtusa,


What is file class and what is its purpose?

1 Answers  


Is java owned by oracle?

1 Answers  


What are inner classes or non static nested classes in java?

1 Answers  


Categories