Cast the first argument to the type of the first parameter of the method you want to call, for example:
methodName((A) null, y, z);
Related Contents:
- Does Java support default parameter values?
- Polymorphism vs Overriding vs Overloading
- Accessing constructor of an anonymous class
- Properly removing an Integer from a List
- How to do method overloading for null argument?
- What is the difference between dynamic and static polymorphism in Java?
- Why does String.valueOf(null) throw a NullPointerException?
- Overload with different return type in Java?
- Constructor overloading in Java – best practice
- Can I override and overload static methods in Java?
- How is an overloaded method chosen when a parameter is the literal null value?
- How can I create a Java method that accepts a variable number of arguments?
- Varargs Java Ambiguous Call
- Why does the compiler prefer an int overload to a varargs char overload for a char?
- Which Overloaded Method is Called in Java
- What is the difference between method overloading and overriding? [duplicate]
- Lambda expression and method overloading doubts
- Java – why no return type based method overloading?
- How to convert an Iterator to a Stream?
- How to split a string with any whitespace chars as delimiters
- How to respond with an HTTP 400 error in a Spring MVC @ResponseBody method returning String
- Is there a goto statement in Java?
- Difference between int[] array and int array[]
- Convert String to Uri
- Number of days in particular month of particular year?
- Use JAXB to create Object from XML String
- How to use `string.startsWith()` method ignoring the case?
- How do you get the “object reference” of an object in java when toString() and hashCode() have been overridden?
- What is mutex and semaphore in Java ? What is the main difference?
- How to import a class from default package
- MySQL & Java – Get id of the last inserted value (JDBC) [duplicate]
- How to convert a Java object (bean) to key-value pairs (and vice versa)?
- SimpleDateFormat parsing date with ‘Z’ literal [duplicate]
- Is it possible to add qualifiers in @RequiredArgsConstructor(onConstructor = @__(@Autowired))?
- Convert from List to CompletableFuture
- How do I schedule a task to run at periodic intervals?
- LBYL vs EAFP in Java?
- SpringRunner vs SpringBootTest
- How can I serve static html from spring boot?
- ClassCastException: java.lang.Object[] cannot be cast to java.lang.String[] android
- Spring Data JPA – “could not initialize proxy – no Session” – With Methods marked as transactional
- SSLHandShakeException No Appropriate Protocol
- Adding Lombok plugin to IntelliJ project [duplicate]
- how to show query while using query annotations with MongoRepository with spring data
- The guice AbstractModule install method
- How do I create a Java sandbox?
- ProGuard for Android and GSON
- What are the cases in which it is better to use unconditional AND (& instead of &&)
- What is a TLAB (Thread Local Allocation Buffer)?
- Does Java’s LinkedHashMap maintain the order of keys? [duplicate]