what are variables in java

Answer Posted / guest

Instance variables-within the class
Local variables-within the methods

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different ways of object creation in java ?

569


What are byte codes?

655


Is main a keyword in java?

534


Can a hashset contain duplicates java?

492


When to use runnable interface vs thread class in java?

514






What is the symbol for space?

558


how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)

1901


What is the purpose of using java.lang.class class?

522


Why do we override tostring method in java?

496


what is difference between equals and ==?

586


How do you use compareto in java?

553


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

557


What is the return type of the main method?

573


what is the purpose of "virtual"?

564


Can I overload to string method

964