Logical oprator bassiclaly 6 are there which is following here :
these are oprators are ogical oparetors.its work with two expression that must resolve the boolean value.THe && and & opretor retuns true only if both operands are true.the || and | opratiors are return true if either or both operands are true,Reply
Conditional operator is bassiclaly called the Ternary oprator its mainly return the two values based on the whether a boolean expression is true or false.its have a two conditions which is following here :
> Returns the valu after the ? if the expression is true.
> Retur the value after the : if the expression is false.Reply
INcrement/ Decrement Operator
increment oprator or decrement oprator bassiclaly suing the two opratores this is calles :
> Prefix (-- or ++)
> Post fix(-- or ++)
post fix use run before the value used in the expression .and prefix uses run after the value is used in the expression.in any expresseion both operands are fully evaluated before the oprator is applied.varaile marked final cannot be incremented or decremented.Reply
String Concatenation Operator
String Concatenation Operator is bassiclaly a oprand is the string this is the + operator cncatenates te operands.its both of the oprands are numeric and the + operator adds the oprands.
THere are four primary math operator ehich called rithmatic oprator :
> and divide.
Te remindr oprator % returns the remainder of the devision.its expression are evaluated form the left to right unless we add parenthesis r unless some operator in te expression have hiegher precedence thn other.the *,/ and % operator have hiegher ta + and -.
Instance of Operator
Instance is for the reference variable only , and checks for the whether the object of of a particular typ.this can be used only for the test object against class types that are i the same class hierarchy.its for an instances an object passes the instance of the test of any of its super class implement the interface of the right side of the instance of the operator.Reply
Reltiona Operator bassically a always rsult in a boolean value.like True and false.Tee are six relational operator >,>=,<=,==, and !=, The last two (== and !=) are some times refferd to as equality operator.Equality operator are mainly two types :
> There are two equality operators : == and !=.
> Four types of things can be tested: number , chrectors,booleans,and reference variable.Reply
IN the programming language JAVA Garbage colletion provides automated memory anagment.its mainly purpose of GC is to delete objects that cannt be reached.only the JVM decides when to run the GC we can only suggest it.we dont know exactly hats the GC algo .object must be consider eligible befe they can be garbage collection .an object is eligible when we must live thread can reach it .java apllication can run out th memory .Reply
its primitive wiening uses the smallest method argument possible.its used mainly individualy boxing and var-args are compatible with overloading.we cannt widen from one wrapper to the another type of wrapper.its cant widen an box.we can crate a box then widen .we can combine var-args either widening or boxing.Reply
the wrapper clases correlated tot he primitive types.its have a two main functions :
> its wrap prmitives so that thay can be handeled like objects.
> to provide utility methods for primitives.
Wrappers are using most importance families method whch is three are there :