Question
What will happen if class implement two interface having common method?

Answers

That would not be a problem as both are specifying the contract that implement class has to follow.
If class C implement interface A & interface B then Class C thing I need to implement print() because of interface A then again Class think I need to implement print() again because of interface B, it sees that there is already a method called test() implemented so it's satisfied.   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 What are Dalvik Executable files?
  • Q Give the file structure used by TYPO3 files.
  • Q How to export QTP results to an .xls file?
  • Q Where will you find the following in Delhi. 13th century tombo of Ghiyas-ud-din Balban, Jamali (Sheikh Fazarullah)-Kamali mosque and tombs and Metcalfe’s Folly –the only landlocked lighthouse built by Sir Thomas Theophilius Metcalfe in the middle of 19th century and Md Quli Khan’s tomb (brother of Adham Khan, one of Akbar’s key generals)?
  • Q What are the factors that can work against linear scale up in a transaction processing system?which of the factors are likely to be the most important in each of the following architectures: shared memory, shared disk, and shared nothing?
  • Q How did you like your prior job? What did you particularly like about it? What did you dislike about it?
  • Q Soil Science, Oceanography, Missile Production comes under the .................study of Cluster.
  • Q How would you improve throughput in Sybase?
  • Q Who was the captain of the sci-fi submarine Stingray?
  • Q Why carbon monoxide is dangerous to oxygen flow?
  • Q Which is the butterfly shaped gland in Human body?