Question
Similarity and Difference between static block and static method ?

Answers

Both belong to the class as a whole and not to the individual objects. Static methods are explicitly called for execution whereas Static block gets executed when the Class gets loaded by the JVM.   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q The Oxford University Press has recently launched online dictionaries in which Indian languages?
  • Q What skills and experiences should the right candidate have for this position?
  • Q What is keyword driven frame work real time process in QTP?
  • Q What is Reports? What the steps are for create a report using an Auto report?
  • Q Which historical land legislation in Travancore in the year of1865 June is hailed as the Magna Carta of Travancore Ryots'?
  • Q Unsigned char c; for ( c=0;c!=256;c++2) printf("%d",c); No. of times the loop is executed ? (127,128,256,infinitely)
  • Q Comment with reasons on the Acts done outside the limits of memorandum are ultra vires.
  • Q May a person observing a Mustahab fast, break it during the day if a Momin offers him/her something to eat?
  • Q What do you verify with the GUI checkpoint for multiple objects and what command it generates, explain syntax?
  • Q What is the use of set statement in tsql?
  • Q What is Activity management feature in CRM