longer needin ++you use delete in javayou don' need to worry about it java periodically looks through each block of memory that was obtained with new to see if valid references to it still exist if there are no such referencesthe block is returned to the free memory store this is called garbage collection in +almost every programmer at one time or another forgets to delete memory blockscausing "memory leaksthat consume system resourcesleading to bad performance and even crashing the system memory leaks can' happen in java (or at least hardly everarguments in ++pointers are often used to pass objects to functions to avoid the overhead of copying large object in javaobjects are always passed as references this also avoids copying the object void method (bankaccount ba new bankaccount( )method (ba )void method (bankaccount acctin this codethe references ba and acct both refer to the same object primitive data typeson the other handare always passed by value that isa new variable is created in the function and the value of the argument is copied into it equality and identity in javaif you're talking about primitive typesthe equality operator (==will tell you whether two variables have the same valueint intvar int intvar intvar if(intvar =intvar system out println("they're equal")this is the same as the syntax in and ++but in javabecause they use referencesrelational operators work differently with objects the equality operatorwhen applied to objectstells you whether two references are identicalthat iswhether they refer to the same objectcarpart cp new carpart("fender")carpart cp cp if(cp =cp system out println("they're identical")in +this operator would tell you if two objects contained the same data if you want to see whether two objects contain the same data in javayou must use the equals(method of the object class