What is static variable and static method?
Answer Posted / mallesh
A static variable is a variable who's single copy in memory
is shared by all objects,so any modifications to the static
variable will modify it's value in all objects.
Static variables are created in Method Area part of Memory.
| Is This Answer Correct ? | 147 Yes | 30 No |
Post New Answer View All Answers
What is the size of int in 64-bit jvm?
Is arraylist a class in java?
What is arguments in java?
What is the difference between menuitem and checkboxmenu item?
How can we make sure main() is the last thread to finish in java program?
What are the types of methods in java?
What is an infinite loop?
What is the maximum length of a url?
How do I write a self declaration?
What is static in java?
Is set ordered?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
How to connect to a remote database using Applet?
How do you make an arraylist empty in java?
What are the basic control structures?