Go basics summary

Go basics summary Variable declaration Variables in Go language can only be used after declaration (variables need to be defined in advance) and must be used after declaration (if not applicable, an error will be reported) Standard statement var Variable name variable type example: var name string var id int var isOk bool Multivariabl ...

Added by lhcpr on Thu, 30 Dec 2021 23:45:53 +0200

[Java basics] advanced reflection

What is a MethodHandle? Starting with Java 7, another set of API MethodHandle is provided. Its function is similar to reflection, which can access type information at run time, but it is said that its execution efficiency is higher than reflection, which is also called modern reflection of Java. The official definition is as follows: A me ...

Added by shortkid422 on Sun, 26 Dec 2021 13:06:22 +0200