How to Increment the value of the empid E001 for each and
every employee by using the programe?



How to Increment the value of the empid E001 for each and every employee by using the programe?..

Answer / akshay

Algorithm:
1.Take last used value into string variable.
2. Use String function to remove alphabet from value and store in temp string.
3. convert remaining part into int32.
4. increment by 1.
5. Append temp string and incremented value.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

Write a program to multiply 3x3 matrics

1 Answers  


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

0 Answers   Microsoft, TCS,


What is an object?

14 Answers   HCL,


What is difference between multiple inheritance and multilevel inheritance?

0 Answers  


How do you achieve polymorphism?

0 Answers  






Have you ever used threads?

3 Answers   Adobe, IBM,


What is the importance of oop?

0 Answers  


What is difference between class and object with example?

0 Answers  


where is memory for struct allocated? where is memory for class-object allocated? I replied for struct in stack and for class-object in heap. THen he asked if class has struct member variable what happens.class on heap and what about struct in that class? couldnt ans :( :-?

2 Answers   Infosys, Microsoft,


Can java compiler skips any statement during compilation time?

0 Answers  


to find out the minimum of two integer number of two different classes using friend function

0 Answers  


What is static modifier?

0 Answers  


Categories