Following code
public static void main(String[] args) { fun(new Integer(1)); } static void fun(Object ... a) { System.out.println(a.getClass()); }
gives the result: -
class [Ljava.lang.Object;
What is this class?
an array Object[].
Object[]
To get runtime type information:
a.getClass().isArray() -> true a.getClass().getComponentType().getName() -> java.lang.Object
according to the JVM specification , it is just an java.lang.Object array :
varargs ( ) Java - varargs .
Source: https://habr.com/ru/post/1718783/More articles:How to unload dll loaded by System.load (path to dll) - javaJavaScript for trimming started 0 in line - javascriptMultiple sign-in does not work in Facebook dialog - facebookJava library architecture - javaChanging the type of cursor when moving the mouse over selected text using HTML / Javascript - javascripthow to save enum value for a session - enumsЗапуск программы axis2 программно - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1718786/converting-from-string-bits-to-byte-or-hex&usg=ALkJrhgJmL1Ez9DpBPRJcavH54_uCZ9UGAItextsharp pdfpcell header - javaIs reusing GDI + objects a bad practice? (or: how to use many nested blocks without a headache?) - c #All Articles