KafkaConsumer Java API subscribe() vs assign() : <p>I am new with Kafka Java API and I am working on consuming records from a particular Kafka topic.</p>

<p>I understand that I can use method <code>subscribe()</code> to start polling records from the topic. Kafka also provides method <code>assign()</code> if I want to start polling records from selected partitions of the topics.</p>

<p>I want to understand if this is the only difference between the two?</p>
