What do you mean by aggregation?
Answer / nashiinformaticssolutions
The term aggregation refers to the relationship between two classes best described as a “whole/part” and “has-a” relationship. This kind is the most specialized version of an association relationship. It contains the reference to another class and is said to have ownership of that class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain about method local inner classes or local inner classes in java?
what is difference between prepare stetement and callable starement with example?
What is the reflection?
whats string ?
To what value is a variable of the Boolean type automatically initialized?
What are desktop procedures?
can any body body expalin best definitions & best real time exaples for opps concepts.
Why parsing is done?
Why Java doesn’t support multiple inheritance?
Explain the init method?
public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?
How many types of memory areas are allocated by JVM in java?