Java Message Service (JMS) Question:

What is the difference between topic and queue?

JMS Interview Question
JMS Interview Question

Answer:

A topic is typically used for one to many messaging i.e. it supports publish subscribe model of messaging. While queue is used for one-to-one messaging i.e. it supports Point to Point Messaging.


Previous QuestionNext Question
What are the different messaging paradigms JMS supports?What is the use of Message object?