Java Classes Question: A stack stores data using first-in, last-out ordering.A) TrueB) False Java Classes Interview QuestionAnswer: Yes it is true ... Stack works on the Startegy of First In First Out Previous QuestionNext QuestionIn this example class-var = new classname( ); The classname is the name of the class that is being instantiated.A) TrueB) FalseThe type of data returned by a method need not be compatible with the return type specified by the methodA) TrueB) False