-3

Can any one explain me this syntax of predefined GenericModel class?Here what is Object... what are these 3 dots(period) for can any one explain me.

public static JPAQuery find(String query, Object... params) {
            throw new UnsupportedOperationException("Please annotate your JPA     model with @javax.persistence.Entity annotation.");
        }
Neil Stockton
  • 11,383
  • 3
  • 34
  • 29
CSiva
  • 137
  • 1
  • 1
  • 8
  • Read the part about Arbitrary Number of Arguments in the [tutorial](https://docs.oracle.com/javase/tutorial/java/javaOO/arguments.html). – RealSkeptic Sep 09 '15 at 09:19

1 Answers1

0

Object... params means zero or more objects of type java.lang.Object may be passed as the parameter(s) for the method find.

Please refer to the official tutorials on Arbitrary Number of Arguments.

See also: Java, 3 dots in parameters.

Community
  • 1
  • 1
Sandeep Chatterjee
  • 3,220
  • 9
  • 31
  • 47