vishwanath k vishu


{ City } banglore
< Country > india
* Profession * student
User No # 59030
Total Questions Posted # 0
Total Answers Posted # 5

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

Users Marked my Answers as Correct # 12
Users Marked my Answers as Wrong # 1
Questions / { vishwanath k vishu }
Questions Answers Category Views Company eMail




Answers / { vishwanath k vishu }

Question { Wipro, 14389 }

Differentiate constructor and a method and how are it be
used?


Answer

mainly there are
i.constructor name is same as the class name whereas method name doesn't.
ii.constructor is implicitly called when an object is created.....but the method is explicitly called by using object.
iii.constructor has no return type hence it doesn't return anything.....but method has return type.
iv.constructor is used to create and initialize data members.....where as method is created to code the specific task.

Is This Answer Correct ?    4 Yes 0 No

Question { Microsoft, 50160 }

Which way should the key turn in a car door to unlock it?


Answer

in the direction of the car facing its front.. it might be clokwise or anticlockwise.. car position decides.. to get my point. make ur position constant and change the car direction.. u'll get the answer

Is This Answer Correct ?    0 Yes 1 No


Question { NIIT, 93110 }

why java does not support multiple inheritance


Answer

java doesn't support multiple inheritance directly because it leads to overiding of methods when both extended class have a same method name. this will leads to ambiguity in executing. this problem can be solved using interface which works similar to the multiple inheritance but the methods are defined in the subsequent classes so it does not create any ambiguity.

Is This Answer Correct ?    8 Yes 0 No

Question { Wipro, 33998 }

which type of architecture 8085 has?
what major and minor differnce of 8086&8085


Answer

8085 is von neumann architecture wer the data and code are stored in same address space whereas in 8086 the memory is diveided into segments(16 logical segments) so there is a clear distinction between code and data.

8085 is 8 bit processor with 16 address lines whereas 8086 is 16 bit processor with 20 address lines


8085 doesn't support pipelining-prefecthing next instruction and storing in a queue(6 byte length)while cpu executes current instruction- whereas 8086 supports.

8085 can address only 2^16 bytes.. where as 8086 capable of addressing 2^20 byte of memory..

Is This Answer Correct ?    0 Yes 0 No

Question { IBM, 11777 }

why constructor dont have returns type?


Answer

because it is called implicitly when object is created... so it doesn't have any target to return values....
for ex..
int v=Integer.parseInt(X.readLine());
int n=fact(v);
int fact(int)
{
.....return ans
}
so it return ans to the variable n which is assigned to calling statement..... when compared the constructor don't have any target to return

Is This Answer Correct ?    0 Yes 0 No