what is mean by forward declaration and where we'll use it.
Answer Posted / venkat
A forward declaration looks like the package definition
part but is inside the bode.
e.g.
procedure A is
begin
B;
end A;
procedure B is
begin
null;
end B;
will not work, because during call to B B is still unknown
(1 Step compiler) therefore we need a forward declaration:
procedure B;
procedure A is
begin
B;
end A;
procedure B is
begin
null;
end B;
now we can compile
| Is This Answer Correct ? | 30 Yes | 2 No |
Post New Answer View All Answers
explain the difference between bool, tinyint and bit. : Sql dba
Can we insert in view in sql?
what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba
how many sql dml commands are supported by 'mysql'? : Sql dba
How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?
Can we rollback after truncate?
How many types of primary keys are there?
Enlist some predefined exceptions?
What are all the common sql functions?
What is snowflake sql?
What is the difference between sum and count in sql?
What is the difference between instead of trigger and after trigger?
What is a sql select statement?
What is union and union all keyword in sql and what are their differences?
Explain the insert into statements in sql?