below code should throw an exception
import jakarta.annotation.Nonnull;
public class test89 {
public String processString(@Nonnull String input) {
// Your method logic here
return "Processed: " + input;
}
public static void main(String[] args) {
test89 exampleService = new test89();
String result = exampleService.processString(null);
System.out.println(result);
}
}
but giving output as
`
Processed: null
Process finished with exit code 0`
it should throw Exception