Register Login

OO ABAP Interview Questions for Experienced

Hi All,
 
Note: Highlight  your OO ABAP skills and experince in your resume.
 
1.  Priniples of oops?
2.  What is difference between procedural & OO Programming?
3.  What is class?
4.  What is object?
5.  Can we instantiate a class within implementation of other class?
6.  What is deferred key word ?
7.  How we can refer to a class without defining it?
8.  Can we put non declarative statement e.g. START-OF-SELECTION within a class
9.  What is static attribute & method?
10. How to create a global class ?
11. How can we pass importing parameter ? pass by value/pass by reference
13. Can we changed pass by reference in any method ?
14. What is preferred parameter ? more than one optional & no mandatory
15. can we pass returing parameter by reference ? NO only pass by value
16. can static method use instance attribute ?
17. Can a method call itself?
18. What is me variable?
19. What is constructor ?What are type of constructor ?When it is called ?
20. Can we have export parameter in Instance constructor?
21. Can instance constructor raise exception ?
22. When static constructor is called?
23. Can we have interface for static class or constructor?
24. What is abstract class ?
25. Can we implement abstract method in abstract class ? if not then where it can be implemented?

26. What is final class & Method ?

27. Can subclass call super class constructor?
28. Can we call static constructor more than once in a program?
29. What is method redefinition?
30. What is interface ?
31. Can we implement interface in private section of any class ?
32. Is it mandatory to implement all the methods of interface ?
33. What is alias ? Instead of specifying full name of interface methods we can assign it a name which can directly trigger.
34. What is Friendship?
35. What is event handler method ?
36. Can we have more than one event handler method for same event ?
37. Can event have import parameter ?
38. How you handled exception during programming?
39. What is cleanup section ?
40. What is BADI?
41. What is check box for multiple use in BADI?
42. How to search a BADI ?
43. What is Value table and Check table, Difference between them?
44. What are secondary index's?
45. What is the draw back of secondary index's?
46. What are conversion routines?
47. At which level are they mantained?
48. what are Predeifined data types?
49. Which predefined data type uses conversion routines?
50. What are logical units of work?
51. When is difference btw native and open sql
52. Difference between Modify and Update
53. Which is more efficient for all entries or joins?
54. When is implicit commit triggered.
55. What are RFC?
56. How do u create a destination system?
57. What are different types of commits used?
58. What are search helps?
59. Types of tables?
60. Difference between pool tables and cluster tables?
61. What is a delivery class?
62. What are the types of delivery class?
63. Difference between System tables and control tables?
64. What is normalization?
65. What is BCNF?
66. What is persistant class


Comments

  • 22 Jan 2011 5:26 am venkat Helpful Answer
    30.what is an interface?
    it can have only method declarations.
    we have to implement in classes and also define that interface in that class also
  • 22 Jan 2011 5:28 am venkat Helpful Answer
    31. can we implement interface in private section.
    no.
    by default it is public.
    and always public.
  • 22 Jan 2011 5:29 am venkat Helpful Answer
    32. is mandatory to implement all methods of interface.
    yes.
    other wise it throws an syntactical errors
  • 22 Jan 2011 5:33 am venkat Helpful Answer
    what is aliases.
    it is assigned in class level to the interface methods.
    to access the interface method(intefacename+method) while calling through obj of the class.
    wehave to give a name to that interfacemethod & visibility as public
  • 22 Jan 2011 5:35 am venkat Helpful Answer
    what is friendship.
    it means to access the private & prited data of a classA using friend in another classB.
    nothing but a relation.
  • 07 Apr 2011 4:30 pm Sateesh Helpful Answer
    1. encapsulation
    polymorphism
    Inheritances
    class & Object.

    2. class is a user defined data type consists attributes, methods.
    3. Object is insistence of class, object is Physical representation, where as class logical representation.

    5.Yes, we can implement it.

    6.differed key word is used to tell the compiler, the class should be defined some where else in program.
    Eg: class LCL_imp definition differed.

    10. yes, we can create it By using TCODE 'se24'
    SATEESH
  • 27 Dec 2012 7:01 am Guest Helpful Answer
    17. Yes, Method can call itself.
    *&---------------------------------------------------------------------*
    *& Report YZ_PROGRAM_62

    CLASS c1 DEFINITION .
    PUBLIC SECTION.
    * CLASS-DATA : statnum TYPE i .
    DATA : statnum TYPE i .
    METHODS : m1 .
    ENDCLASS. "c1 DEFINITION

    *---------------------------------------------------------------------*
    * CLASS c1 IMPLEMENTATION
    *---------------------------------------------------------------------*
    *
    *---------------------------------------------------------------------*
    CLASS c1 IMPLEMENTATION.
    METHOD : m1.
    statnum = statnum + 10.
    IF statnum GT 100.
    EXIT.
    ENDIF.
    WRITE:/5 statnum .
    CALL METHOD m1.
    ENDMETHOD. ":
    ENDCLASS. "c1 IMPLEMENTATION
  • 27 Dec 2012 9:12 am Vikas Helpful Answer
    18. Suppose you have two variables of same name,one in the definition part of class and another one in the implementation part of the class( in method). ME keyword is used to access variable of class .


    class sai definition.
    public section.
    data:num type i value 5.
    methods:meth.
    endcalss.

    class sai implementation.

    method meth.
    data: num type i value 10.
    write:/5 me->num . "Access variable of class
    /5 num. " Access variable of method.
    endmethod.
    endclass.

    start-of-selection.
    data obj type ref to sai.
    create object obj.
    call method obj->meth.
  • 27 Dec 2012 9:10 am Vikas
    17. Yes, Method can call itself. see below example.
    CLASS c1 DEFINITION .
    PUBLIC SECTION.
    DATA : statnum TYPE i .
    METHODS : m1 .
    ENDCLASS. "c1 DEFINITION

    CLASS c1 IMPLEMENTATION.
    METHOD : m1.
    statnum = statnum + 10.
    IF statnum GT 100.
    EXIT.
    ENDIF.
    WRITE:/5 statnum .
    CALL METHOD m1.
    ENDMETHOD. ":
    ENDCLASS. "c1 IMPLEMENTATION

    START-OF-SELECTION.
    DATA : obj1 TYPE REF TO c1 .
    CREATE OBJECT obj1.
    CALL METHOD obj1->m1 .
  • 28 Dec 2012 6:03 am Vikas
    17. Yes , Method can cal itself.

×