What is the exact difference in between unicast and multicast object? Where we will use?



What is the exact difference in between unicast and multicast object? Where we will use?..

Answer / Mohan Kumar

In Java, a UnicastObject is an object that can be used by exactly one thread at a time. By default, all objects are unicast objects. MulticastObject, on the other hand, allows an object to be shared among multiple threads concurrently. The Multicast class is part of the Java Monitor API and can be used in situations where synchronization across multiple threads is required.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can you extend more than one interface?

9 Answers  


What is an exception in java?

1 Answers  


What is the use of beaninfo?

1 Answers  


what is default layout of JFrame class?

6 Answers  


Does java allow overriding static methods ?

1 Answers  


what is auto boxing

3 Answers   UHG,


Can we declare main () method as non static?

1 Answers  


Why java is used everywhere?

1 Answers  


11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result? 1 B 2 The code runs with no output. 3 Compilation fails because of an error in line 12. 4 Compilation fails because of an error in line 15.

6 Answers  


What are the OOPS concepts in Java ?

4 Answers   Satyam,


What is the importance of static variable?

1 Answers  


What are filterstreams?

1 Answers  


Categories