Question: What method signature will work with this code?
- public void isHealthy(String avocado)
- boolean isHealthy(String string)
- public isHealthy("avocado")
- private String isHealthy(String food)
Answer: The correct answer of the above question is Option B:boolean isHealthy(String string)