Is there any difference in execution between using fully qualified names in Java and using import?

ask two questions:

  1. is there any difference in jvm execution between using fully qualified names and using import, except for the difference in length? If there is a difference, which is more efficient?
  2. use the class name. What is the difference in execution between static members and static import? if not, which is more efficient?

ask the boss for advice, but I don"t know much about jvm.

Mar.16,2021

is the same, but it is written differently, and the bytecode instructions are the same.

Menu