When should I use abstract classes and when should I use interfaces?
Correct Answer
Use Interfaces when? - You see that something in your design will change frequently - If various implementations only share method signatures then it is better to use Interfaces - You need some classes to use some methods which you don't want to be included in the class, then you go for the interface, which makes it easy to just implement and make use of the methods defined in the interface Use Abstract Class when? - If various implementations are of the same kind and use common behavior or status then abstract class is better to use - When you want to provide a generalized form of abstraction and leave the implementation task with the inheriting subclass - Abstract classes are an excellent way to create planned inheritance hierarchies They're also a good choice for nonleaf classes in class hierarchies
More questions
1. EXPLAIN has output with MATCHCOLS = 0. What does it mean?
Correct Answer: New salespersons needs: a) He needs to know the information on company history, its policies, rules and regulations etc b) Details about the product- its features, usage , demand c) Systems and procedures as followed by the company This may include the work timings, overimed, field work, work culture of that particular organisation etc d) Training on the basic ethics that need to be followed while selling a product e) He must know the basics of selling the different products of the company
Correct Answer: SPUFI stands for SQL processing using file input It is the DB2 interactive menu-driven tool used by developers to create database objects
6. How will u send data from a cobol file to db2 table?
Correct Answer: It is an investment strategy that involves the buying of money market instruments or currencies in anticipation of a price rise or a future increase in demand Buying forward allows an investor to take advantage of future and potential profits by buying now at alower price, and selling when prices rise
Correct Answer: Benchmarking is the process of comparing one's business proceses and performance metrics to industry bests or best practices from other industries Dimensions typically measured are quality, time and cost
9. In a DB2-CICS program which acts as co-ordinator and which is the participant?