devesh dashora


{ City } udaipur
< Country > india
* Profession * company owner member
User No # 21034
Total Questions Posted # 0
Total Answers Posted # 6

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 71
Users Marked my Answers as Wrong # 69
Questions / { devesh dashora }
Questions Answers Category Views Company eMail




Answers / { devesh dashora }

Question { 17665 }

What are null interfaces in JAVA ? and give me some
examples?


Answer

null interface is such which have no abstract methods
declaration in interface definition. For Ex. Clonable
interface.

Is This Answer Correct ?    13 Yes 1 No

Question { 5842 }

Name the types of mouse event listeners ?


Answer

MouserListener
MouseMotionListener

Is This Answer Correct ?    13 Yes 0 No


Question { NIIT, 92851 }

why java does not support multiple inheritance


Answer

Basically multiple inheritance is useful only in
polymorphism, so in java it can be done by interfaces, so
that java doesn't need to provide multiple inheritance
using extends keyword.

Is This Answer Correct ?    22 Yes 34 No

Question { CTS, 11915 }

what is the replacement for GOTO in java?


Answer

break with label and continue with label.
1. Break with label
loop1: for (int i = 0; i < 10; i++)
{
loop2: for ( int j = 0; j < 10; j++)
{
System.out.println(i);
if( i + j > 10 )
break loop1;
}
}

2. continue with label

loop1: for (int i = 0; i < 10; i++)
{
loop2: for ( int j = 0; j < 10; j++)
{
if(i + j == 5)
continue loop1;
System.out.println(j);
}
}

Is This Answer Correct ?    12 Yes 20 No

Question { IBM, 15652 }

wHAT IS DEFAULT SPECIFIER IN JAVA
wHAT IS DEFAULT CONSTRUCTOR IN JAVA
wHAT IS DEFAULT METHOD IN JAVA


Answer

Default Specifier is : friendly. but there is no keyword
provided by java

Default Construtor is : the constructor of top level super
class of each java class that is "Object" class.

Default Method is : main method that would called by
default through the java interpretor.

Is This Answer Correct ?    5 Yes 4 No

Question { Vector, 20777 }

main()
{
int ptr[] = {1,2,23,6,5,6};
printf("%d",&ptr[3]-&ptr[0]);
}


Answer

6

Is This Answer Correct ?    6 Yes 10 No