Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is FORWARD DECLARATION in Packages?

Answers were Sorted based on User's Feedback



What is FORWARD DECLARATION in Packages?..

Answer / kiran kumar

PL/SQL allows for a special subprogram declaration called a
forward declaration. It consists of the subprogram
specification in the package body terminated by a semicolon.
You can use forward declarations to do the following:
? Define subprograms in logical or alphabetical order.
? Define mutually recursive subprograms.(both calling each
other).
? Group subprograms in a package

Example of forward Declaration:

CREATE OR REPLACE PACKAGE BODY forward_pack
IS
PROCEDURE calc_rating(. . .); -- forward declaration
PROCEDURE award_bonus(. . .)
IS -- subprograms defined
BEGIN -- in alphabetical order
calc_rating(. . .);
. . .
END;

PROCEDURE calc_rating(. . .)
IS
BEGIN
. . .
END;

END forward_pack;

Is This Answer Correct ?    41 Yes 3 No

What is FORWARD DECLARATION in Packages?..

Answer / palaniraman balasubramanian

Special sub program unit declaration called forward
declaration, Consider below the example

In this pacakage, the first program unit is calling the
calc_rating but calc_rating is defined last in the package;
if we are not declared the fwd declaration then it will
raise the error While compiling this package. Package
compilation always happens top to bottom. For resolving
this compilation issue, you should declare the fwd
declaration.

CREATE OR REPLACE PACKAGE BODY forward_pack
IS
PROCEDURE calc_rating(. . .); -- forward
declaration
PROCEDURE award_bonus(. . .)
IS -- subprograms
defined
BEGIN -- in alphabetical
order
calc_rating(. . .);
. . .
END;

PROCEDURE calc_rating(. . .)
IS
BEGIN
. . .
END;

END forward_pack;

Is This Answer Correct ?    21 Yes 4 No

What is FORWARD DECLARATION in Packages?..

Answer / reddy

we have to declare an attribute before using in the program
called forward declaration

Is This Answer Correct ?    5 Yes 1 No

What is FORWARD DECLARATION in Packages?..

Answer / avinash

It is required in case of private members only not public

Is This Answer Correct ?    3 Yes 3 No

What is FORWARD DECLARATION in Packages?..

Answer / pradhyumn sharma

Forward Declaration is that we must declare the procedures
or functions before using them. If we dont declare then ti
raise error.

Is This Answer Correct ?    3 Yes 4 No

What is FORWARD DECLARATION in Packages?..

Answer / ranga

if you want define the procedure in existing local procedure
on that time you will define the procedures,along with the
parameters is called forward declaration.

Is This Answer Correct ?    6 Yes 15 No

Post New Answer

More Oracle Apps Technical Interview Questions

How relation will be made between modules in oracle financial?

4 Answers   HCL, Wipro,


What are the tables in GL?

3 Answers   Convergys,


what are external tables? how can we use external table instead of sql * loader to load data from flat file to staging table?

1 Answers   IBM,


how to print multi lay outs,muti currency,muti language in xml publisher

2 Answers   Deloitte, Oracle,


we have clients in different countries, we can run report in different places, if i want to display particular language,country,currency everything displays for that country how?

1 Answers  


why r u transer the data base tables to flat file and what is use

3 Answers   Wipro,


What is the difference between BPA AND Contract.

1 Answers   Accenture,


WHAT IS THE USE OF SKIP WHERE U WILL GIVE?

3 Answers  


Steps for DFF registration

2 Answers   IBM, Savvis, Wipro,


What is Place holder Columns?

3 Answers  


Plz anybody send me Technical specification for AP Interface

0 Answers   Satyam,


What is the use of format trigger?

4 Answers   Cap Gemini, IBM,


Categories
  • Oracle Apps Technical Interview Questions Oracle Apps Technical (547)
  • Oracle Apps Financial Interview Questions Oracle Apps Financial (793)
  • Oracle Apps Manufacturing Interview Questions Oracle Apps Manufacturing (53)
  • Oracle Apps HRMS Interview Questions Oracle Apps HRMS (169)
  • Oracle Apps CRM Interview Questions Oracle Apps CRM (9)
  • Oracle Apps SCM Interview Questions Oracle Apps SCM (141)
  • Oracle Install Base Interview Questions Oracle Install Base (62)
  • Oracle Service Contracts Interview Questions Oracle Service Contracts (101)
  • Oracle Apps AllOther Interview Questions Oracle Apps AllOther (114)