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 |
Can you extend more than one interface?
What is an exception in java?
What is the use of beaninfo?
what is default layout of JFrame class?
Does java allow overriding static methods ?
what is auto boxing
Can we declare main () method as non static?
Why java is used everywhere?
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.
What are the OOPS concepts in Java ?
What is the importance of static variable?
What are filterstreams?