What are the features and advantages of OBJECT ORIENTED PROGRAMMING[OOPS]?
Answers1. objects can easily be modified and added to a system there by reducing maintenance costs.
2. Better Modelling Techniques for real world examples than procedure.
What are the difference between abstract class and interface?
AnswersAbstract class: abstract classes are the class where one or more methods are abstract but not necessarily all method has to be abstract. Abstract methods are the methods, which are declare in its class but not define.
nterface: Interfaces are one type of class where all the methods are abstract. That means all the methods only declared but not defined. All the methods must be define by its implemented class.
What are the advantages of stored procedures, triggers, indexes?
AnswersA stored procedure is a set of SQL commands that can be compiled and stored in the server. Once this has been done, clients don't need to keep re-issuing the entire query but can refer to the stored procedure. This provides better overall performance because the query has to be parsed only once, and less information needs to be sent between the server and the client. You can also raise the conceptual level by having libraries of functions in the server. However, stored procedures of course do increase the load on the database server system, as more of the work is done on the server side and less on the client (application) side.
A trigger is effectively a type of stored procedure, one that is invoked when a particular event occurs.
Indexes are used to find rows with specific column values quickly.
No comments:
Post a Comment