Aggregation and containment in the Programming
Illustrate the basic difference between Aggregation and containment in the Programming?
Expert
Aggregation is a relationship between the whole and a part. We can add or subtract some of the properties in the part (or slave) side. It won’t influence the whole part.
Best illustration is Car that comprises the wheels and some additional parts. Even although the parts are not there we can call it as car.
However, in the case of containment the entire part is influenced when the part in that got influenced. The human body is an apt instance for this relationship. Whenever the whole body dies the parts (heart and so on) are died.
Filter stream: It is an input-output class which filters or manipulates its stream of input- or output-data in some manner. Two illustrations are: DataInputStream and DataOutputStream.
Write a program to print out ten random numbers from the following sets: a) {0, 1, 2, 3, 4, 5, ...99, 100} b) {1, 2, 3, 4, 5, 6} c) (10, 20, 30, 40, 50,...990, 1000} d) {-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5} e) {1.5, 2.0, 2.5, 3.0, 3.5}
What do you mean by data movement? Describe in brief.
Explain in process verses out of process component.
Q. Explain type conversion rules for basic data types in java. Ans. Type promotion rule: Java automatically each bits or short operant to int when evaluating an expression. As usual as the automatic promotion
Explain the computer process.
Explain win 3.1 supports which form of multi tasking?
Q. What is the use of making a method private inside
Java 2 SDK: It is a particular implementation of the abstract functionality explained in Sun's specification of Java 2 Platform.
Define the term Constant: A variable whose value might not be changed. In Java, such are implemented by the final variables.
18,76,764
1942110 Asked
3,689
Active Tutors
1448570
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!