Does the code below use command pattern
<p>I have a very basic question about the command pattern. Supose, I have an interface like</p>

<pre><code>public interface Task {  
    public void execute();  
}  
</code></pre>

<p>and some class implementing the interface Task</p>

<pre><code>class SomeClass implements Task {  
public void execute() {  
 //do something  
}  


class Test {  
    public static void main(String[] args) {  
         Task task = new SomeClass();  
          task.execute();  
    }  
}  
</code></pre>
