Sunday, March 22, 2015

Failed in Java Interview Know How To Success - மூன்று தாரக மந்திரம்


Failed in Java Interview Know How To Success

மூன்று தாரக மந்திரம்

Direct Questions. நேரடி கேள்வி 
String and String Buffer--- Why they are asked
2-3 year's will say String Mutable and StringBuffer Immutable
5-7 year's will say Too Many Strings will occupy more memory in constant pool
2-3 year's will say Static cannot be overriden
5-7 year's will say static synchronized and non static synchronized method lock on two different object, too many static will fill JVM heap, override a static method with a non-static method in sub class you will get compilation error, static final enum will cached in client, Private statics are easily exposed through public interfaces,
2-3 year's will say cloning object used by java clone methiod
5-7 year's will say The java.lang.Cloneable mechanism is problematic and should not be used.  it has many security flaws un till you know how to use clone safely to restrict untrusted code from instantiating a class

Your answers must be focused on
Formatted Code
Secured Code
Scalable Code
இம்மூன்று தாரக மந்திரம்

இதிலிருந்து நீங்கள் கற்றுக்கொள்ள  வேண்டியது உங்கள் கோட் எவ்வளவு பாதுகாப்பானது [how secured], எப்படி சிறப்பாக மெய்நிகர் இயந்திரத்தில்[virtual machine] இடத்தை அடைத்து கொள்ளாமல் செயல்படும்[Scalability + Optimized for testing] என்பன . இது மட்டும் இல்லை உங்கள் கோட் நாற்றம் [code smells bad]அடிக்காமல் பார்த்து கொள்ள வேண்டும் அதாவது உங்கள் கோடை அடுத்தவர் புரிந்து கொள்ளும்படி இருத்தல் வேண்டும் [Well Formatted for other programmer understand] . இதை நீங்கள் கற்று கொண்டால் நீங்கள் நல்ல Programmer

Scenario Based Questions சூழ்நிலை கேள்வி 
watch this space for more



No comments:

Post a Comment