Saturday, March 27, 2010

Unix Questions

  • How to find and delete files older than a year in Unix?
  • Write the awk command print the 5th column of 'ls -l'?
  • What will be the default permissions of a file created in Unix?
  • How would you execute a script file and how to execute the script file from a different directoy?
  • Write the grep command to find pattern "Vinod" and "Vinney" from a file.
  • what is SED and AWK?
  • Adding Questions

  • What are the conditions underwhich finally() wont be called?
  • Differences between wait() and sleep()?
  • What is static/early binding and dynamic/late binding?
  • How to create user defined exceptions? How to use throw and throws?
  • What is synchrnization? What are threads and why do we need them?
  • Static block

    Updated on 8th May 2010

  • I have a design, which gets changed often. In this case, which is to be used either abstract class or interface?
  • Difference b/w wait() and sleep()?
  • Difference b/w Hashmap and Hashtable? How to synchronize my HashMap()?
  • Features in Java1.5
  • Difference b/w stringBuffer and stringBuilder?
  • Reflection
  •