Top "Callable" questions

A task that returns a result and may throw an exception.

TypeError: 'list' object is not callable while trying to access a list

I am trying to run this code where I have a list of lists. I need to add to inner …

python callable
The difference between the Runnable and Callable interfaces in Java

What is the difference between using the Runnable and Callable interfaces when designing a concurrent thread in Java, why would …

java multithreading interface runnable callable
What is a "callable"?

Now that it's clear what a metaclass is, there is an associated concept that I use all the time without …

python callable
Why does the 'int' object is not callable error occur when using the sum() function?

I'm trying to figure out why I'm getting an error when using the sum function on a range. Here is …

python sum python-2.7 callable
How do I fix this "TypeError: 'str' object is not callable" error?

I'm creating a basic program that will use a GUI to get a price of an item, then take 10% off …

python string user-interface comparison callable
How to use Callable with void return type?

I am working on a project in which I have multiple interface and two Implementations classes which needs to implement …

java multithreading callable
'int' object is not callable error in python

I'm getting this error: Traceback (most recent call last): File "C:\Users\George\Desktop\ex3.py", line 15, in <module&…

python int callable
Is there a way to take an argument in a callable method?

I have created a piece of code which takes an IP address (from main method in another class) and then …

java multithreading arguments ping callable
java.util.concurrent.ExecutionException: java.lang.NullPointerException Error

The following code snippet doesnt throw any error when executed in a standalone mode. When I deploy this into a …

java nullpointerexception callable
When to use Spring @Async vs Callable controller (async controller, servlet 3)

I would like to know the general use case of using @Async and Servlet 3 asynchronous request implementation in Spring using …

spring asynchronous callable