KyaPoocha.com

Huge Collection of Interview Questions


Archive for March, 2006

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 »

Growing Water-Lily Problem ? 

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 »

The Wolf, the Goat, and the Cabbage Problem ? 

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 »

Happy Handshaking Problem? 

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 »

The Round Table Problem ? 

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 »

What is the difference between a SYNONYM and a VIEW ? 

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 »

What is daemon thread and which method is used to create the daemon thread? 

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 »

What are Transient and Volatile Modifiers? 

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 »

What is the difference between an argument and a parameter? 

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 »

What is an Object and how do you allocate memory to it? 

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 »

what is the difference between Procedural and OOPs? 

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 »

What is preemptive and Non-preemptive Time Scheduling? 

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 »

What is runnable? 

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 »

What is the difference between set and list? 

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 »

What are wrapper classes? 

Wrapper classes are classes that allow primitive types to be accessed as objects.  Read more »

Page 1 of 8512345»...Last »