Jolly Jugs Problems ?
You are standing next to a well, and you have two jugs. One jug has a content of 3 liters and the other one has a content of 5 liters. Question: How can you get... Read more »
You are standing next to a well, and you have two jugs. One jug has a content of 3 liters and the other one has a content of 5 liters. Question: How can you get... Read more »
In the middle of a round pool lies a beautiful water-lily. The water-lily doubles in size every day. After exactly 20 days the complete pool will be covered by the... Read more »
A man has a wolf, a goat, and a cabbage. He must cross a river with the two animals and the cabbage. There is a small rowing-boat, in which he can take only one... Read more »
Jack and his wife went to a party where four other married couples were present. Every person shook hands with everyone he or she was not acquainted with. When the... Read more »
Yesterday evening, Helen and her husband invited their neighbours (two couples) for a dinner at home. The six of them sat at a round table. Helen tells you the following:... Read more »
A SYNONYM is a name assigned to a table or view that may thereafter be used to refer it. If you access to another user’s table, you may create a synonym for... Read more »
Daemon thread is a low priority thread which runs intermittently in the back ground doing the garbage collection operation for the java runtime system. setDaemon... Read more »
Transient: The transient modifier applies to variables only and it is not stored as part of its object’s Persistent state. Transient variables are not serialized. Volatile:... Read more »
While defining method, variables passed in the method are called parameters. While using those methods, values passed to those variables are called arguments. Read more »
Object is an instance of a class and it is a software unit that combines a structured set of data with a set of operations for inspecting and manipulating that data.... Read more »
a) In procedural program, programming logic follows certain procedures and the instructions are executed one after another. In OOPs program, unit of program is object,... Read more »
Preemptive: Running tasks are given small portions of time to execute by using time-slicing. Non-Preemptive: One task doesn’t give another task a chance to... Read more »
Its an Interface through which Java implements Threads.The class can extend from any class but if it implements Runnable,Threads can be used in that particular application. Read more »
Set stores elements in an unordered way but does not contain duplicate elements, whereas list stores elements in an ordered way but may contain duplicate elements. Read more »
Wrapper classes are classes that allow primitive types to be accessed as objects. Read more »