Question
 Can we call a non-static method from inside a static method?

Answers

Non-Static methods are owned by objects of a class and have object level scope and in order to call the non-Static methods from a static block (like from a static main method), an object of the class needs to be created first. Then using object reference, these methods can be invoked.   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 Describe a time when you had to use numerical data or a graph to convince a manager.
  • Q What automation tools can you use to spinup servers?
  • Q What is carriage inwards?
  • Q What are the New Job Postings from the Company or Organization, Territorial Army ?
  • Q Can we declare class as protected?
  • Q List the components, which form the part of integration broker.
  • Q Who said, "Eternal vigilence is the price of liberty.
  • Q Assign any variable name a value of “hello world”, and print that variable’s contents to the console.
  • Q Which Plan projected the Constituent Assembly' to frame a Constitution of India?
  • Q Have you studied pipelining? List the 5 stages of a 5 stage pipeline. Assuming 1 clock per stage, what is the latency of an instruction in a 5 stage machine? What is the throughput of this machine ?
  • Q What is the difference between web templates and site templates?Web Template: