Easy Tutorial
For Competitive Exams

Which constructs an anonymous inner class instance?

Runnable r = new Runnable () { };
Runnable r = new Runnable (public void run () { });
Runnable r = new Runnable {public void run () {}};
System.out.println(new Runnable () {public void run () { }});
Explanation:

It defines an anonymous inner class instance, which also means it creates an instance of that new anonymous class at the same time. The anonymous class is an implementer of the Runnable interface, so it must override the run () method of Runnable.

Additional Questions

If C and G interchange their positions, which of the following will indicate A’s position?

Answer

How many such pairs of letters are there in the word DISTURB, each one has as many letters between its two letters in the word as there are between them in the English alphabet?

Answer

main( )
{
unsigned int i=3;
while( i >=0)
printf( “%d”, i–);
}
how many times will the printf stmt be executed?

Answer

Vincent has a paper route. Each morning, he delivers 37 newspapers to customers in his neighborhood. It takes Vincent 50 minutes to deliver all the papers. If Vincent is sick or has other plans, his friend Thomas, who lives on the same street, will sometimes deliver the papers for him.

Answer

Georgia is older than her cousin Marsha. Marsha’s brother Bart is older than Georgia. When Marsha and Bart are visiting with Georgia, all three like to play a game of Monopoly. Marsha wins more often than Georgia does.

Answer

An application program that is used by the users to get the inofrmation
from the backend of some application like databases:

Answer

Which of the following will be last step for the input given below?
Input: He is going out to search air

Answer

If step II of an input is ‘not is the casino considering legal action’, what step would be ‘not is casino action legal the considering’?

Answer

What does 3G DENOTE?

Answer

Technical Question:


What is the value of the expression (3^6) + (a^a)?

Answer
Share with Friends
Privacy Copyright Contact Us