naresh


{ City } bangalore
< Country > india
* Profession *
User No # 103085
Total Questions Posted # 0
Total Answers Posted # 2

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

Users Marked my Answers as Correct # 46
Users Marked my Answers as Wrong # 8
Questions / { naresh }
Questions Answers Category Views Company eMail




Answers / { naresh }

Question { CSC, 21850 }

What is up-casting and down casting? with example


Answer

The assignment of a subclass instance to a reference
variable of the type "reference to super class" is
described as a narrowing cast, because you are switching
from a more detailed view to a one with less detail. It is
also called as up-casting.

Is This Answer Correct ?    12 Yes 4 No

Question { Yash Technologies, 15731 }

Hi, My question is " How to display 3rd highest salary
record from the internal table. The internal table has 2
fields named emno(Employee number) and salary.".
Send answer to my mail shaiksha.it@gmail.com.
Thanking you.


Answer

Sort the internal table by descending order based on
salary.then read the table with index 3.

read table itab into w_itab index = 3.

Is This Answer Correct ?    34 Yes 4 No