Friday, May 17, 2019

Java Architect interview questions


  • What are the 4 architecture domain TOGAF deal with ?
  1. business
  2. data
  3. application 
  4. technology


  • What is TOGAF ADM ?
Architecture Development Method .
It provides a tested and repeatable process for developing architectures .


  • What are the phases within the ADM .
  1. preliminary
  2. architecture vision
  3. business architecture
  4. information system architecture
  5. technology architecture
  6. opportunities and solution
  7. migration planning
  8. implementation governance
  9. architecture change management
  10. requirement management 
  • What are the SOLID principles?


  • Explain encryption in Java

Create key object using secret key spec passing key and algorithm
Cipher.getinstance blowfish
Set mode encrypt / decrypt
Cipher.dofinal//encrypted
Base64.encode // encoded



  • A method is defined with return type string , I do not want to return anything but still want the method to compile , how can I achieve that ?
instead of return string we can throw an Exception


  • How to access private variables of a class ?
through Reflection API Field.setAccessible(true);





ec2-user@ec2 Permission denied