shiva krishna


{ City } hyderabad
< Country > india
* Profession * professional student
User No # 26736
Total Questions Posted # 0
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 128
Users Marked my Answers as Wrong # 12
Questions / { shiva krishna }
Questions Answers Category Views Company eMail




Answers / { shiva krishna }

Question { 7953 }

what is constructer?what are the type of constructer with
example.


Answer

class Shiva
{
public Shiva() // it is a constructor
{
//code
}
}
class Mainclass
{
public static void main(String args[])
{
Shiva obj=new Shiva();
}
}

explanation: the code written in constructor is
automatically executed when we create object for the
class.no need to call the constructor/method again.

point to note:
constructor must not have any return type

Is This Answer Correct ?    1 Yes 1 No

Question { 40078 }

what is data independence exactly? give an example


Answer

There are two types of data independence

1. Logical data independence: The ability to change the
logical (conceptual) schema without changing the External
schema (User View) is called logical data independence. For
example, the addition or removal of new entities,
attributes, or relationships to the conceptual schema should
be possible without having to change existing external
schemas or having to rewrite existing application programs.

2 Physical data independence: The ability to change the
physical schema without changing the logical schema is
called physical data independence. For example, a change to
the internal schema, such as using different file
organization or storage structures, storage devices, or
indexing strategy, should be possible without having to
change the conceptual or external schemas.

Is This Answer Correct ?    127 Yes 11 No