I have two custom objects ObjA and ObjB. ObjA.b is a LookUp field for ObjB. I have written following SOQL.
SELECT Id, b.Name FROM ObjA
This query gives correct results. Then I need to use these data in APEX code. But What is the return type of above query?
I know I can do as follows if there is only one object.
List<ObjA> obj_As = [SELECT Id, b FROM ObjA]