Thursday, 31 January 2013

The Painting on the wall



There was a king who was a great admirer of art. One day an artist came and said to the king, “Oh King! Give me a blank wall in your palace and let me paint a picture on it.”

The artist was given the job. Just then, another young man said, “Oh King! Please allow me to work on the opposite wall. I too am an artist.”  The king said, “What would you like to make?” The man said, “My Lord, I shall make exactly what that man will make on the opposite wall. Moreover, I shall do so, without looking at his work. I would even request you to have a thick curtain put up between the two walls so that either of us cannot see the other.”

Everyone in the king’s court, including the king was intrigued. He decided to give the young fellow a chance. The following day a thick curtain was put into place and both the artists got to work. The first artist brought in a regular supply of paint, oil, water etc. The second one worked with some cloth and a bucket of water. After a month the first artist told the king that his work was complete. The king sent for the second artist and asked him, “Young man, when would your work be ready? I am coming to see the first wall this evening.” The man said, “My Lord, my wall is ready too!”

The king went to see the first artist’s wall. He was very, very impressed with the painting and gave a hefty sum as a reward to the artist. He then asked for the curtain to be opened up. Lo and behold! The same painting was to be seen on the opposite wall too! Amazing! But true! Each line, each minor detail was exactly as it was on the first wall. But this man had not been seeing what was going on, on the other side of the curtain. So how had he done it?
The king wanted to know the secret. He gave a double reward to the fellow. Then he said, “Young man, I am indeed very happy with your work. But you must tell me; how did you do it?”
The lad said simply, “It’s very easy! I just polished the wall every day till it shone like a mirror!” It was a wall made of white marble! The reflection of the painting across the room, showed up in it!

That is what it means to polish yourself. World is a reflection of you. Whatever you are, the world will seem to be that too. If you are happy, the world will look to be happy. If you are sad; jealous; angry; restless... that is what the world will seem to be to you!

Answer it!!!!


1. 
Which is true about an anonymous inner class?
A.It can extend exactly one class and implement exactly one interface.
B.It can extend exactly one class and can implement multiple interfaces.
C.It can extend exactly one class or implement exactly one interface.
D.It can implement multiple interfaces regardless of whether it also extends a class.


2. 
class Boo 
{
    Boo(String s) { }
    Boo() { }
}
class Bar extends Boo 
{
    Bar() { }
    Bar(String s) {super(s);}
    void zoo() 
    {
    // insert code here
    }
}
which one create an anonymous inner class from within class Bar?
A.Boo f = new Boo(24) { };
B.Boo f = new Bar() { };
C.Bar f = new Boo(String s) { };
D.Boo f = new Boo.Bar(String s) { };


3. 
Which is true about a method-local inner class?
A.It must be marked final.
B.It can be marked abstract.
C.It can be marked public.
D.It can be marked static.


4. 
Which statement is true about a static nested class?
A.You must have a reference to an instance of the enclosing class in order to instantiate it.
B.It does not have access to nonstatic members of the enclosing class.
C.It's variables and methods must be static.
D.It must extend the enclosing class.


5. 
Which constructs an anonymous inner class instance?
A.Runnable r = new Runnable() { };
B.Runnable r = new Runnable(public void run() { });
C.Runnable r = new Runnable { public void run(){}};
D.System.out.println(new Runnable() {public void run() { }});

Thursday, 3 January 2013

win 8 share folder and drives

A Chat With Dr.Devi Shetty, Heart Specialist – Part 1


Qn: What are the thumb rules for a layman to take care of his heart? 
Ans:
1. Diet - Less of carbohydrate, more of protein, less oil 
2. Exercise - Half an hour's walk, at least five days a week; avoid lifts and avoid sitting for a longtime 
3. Control weight 
4. Control blood pressure and sugar 

Qn: It's still a grave shock to hear that some apparently healthy person  gets a cardiac arrest. How do we understand it in perspective?   
Ans: This is called silent attack; that is why we recommend everyone past the age of 30 to undergo routine health checkups. 

Qn: Are heart diseases hereditary?  
Ans: Yes   

Qn: What are the ways in which the heart is stressed? What practices do you suggest to de-stress? 
Ans: Change your attitude towards life. Do not look for perfection in everything in life. 

Qn: Is walking better than jogging or is more intensive exercise required to keep a healthy heart? 
Ans: Walking is better than jogging since jogging leads to early fatigue and injury to joints   

Qn: Does cholesterol accumulates right from an early age or do you have to worry about it only after you are above 30 years of age? 
Ans: Cholesterol accumulates from childhood.

Wednesday, 2 January 2013

We Get Back What We Give




A little boy got angry with his mother and shouted at her, "I hate you, I hate you." Because of fear of reprimand, he ran out of the house. He went up to the valley and shouted, "I hate you, I hate you," and the echo returned, "I hate you, I hate you." 

Having never heard an echo before, he was scared, and ran to his mother for protection. He said there was a bad boy in the valley who shouted "I hate you, I hate you" 

The mother understood and she asked her son to go back and shout, "I love you, I love you". The little boy went and shouted, "I love you, I love you," and back came the echo. 

That taught the little boy a lesson: Our life is like an echo. We get back what we give.


pray for all!!!!!!!!!!!!!!!!