<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-7300550709382233175</atom:id><lastBuildDate>Mon, 02 Sep 2024 09:18:17 +0000</lastBuildDate><category>Core Java</category><category>EBooks</category><category>Servlet</category><category>JDBC</category><category>Code Snippet</category><category>JSP</category><category>UML</category><category>Hibernate</category><category>Spring Framework</category><category>Struts</category><category>EJB</category><category>Design Patterns</category><category>JMS</category><category>Service Oriented Architecture</category><category>JTA</category><category>Java Coding Standards</category><category>Agile</category><category>BigData</category><category>JVM</category><category>OOP Concepts</category><category>log4j</category><category>ANT</category><category>AXIS</category><category>DevOps</category><category>Hadoop</category><category>Python</category><category>Thread</category><category>Velocity Framework</category><category>Webservices</category><category>Apache Hadoop</category><category>Cloud Computing</category><category>Eclipse IDE</category><category>HDFS</category><category>Hadoop Data File System</category><category>J2EE Connector Architecture</category><category>JEE</category><category>JFC</category><category>Java</category><category>Java 5</category><category>Machine Learning</category><category>SCRUM</category><category>Webhosting</category><category>AI</category><category>Artificial Intelligence</category><category>Collection APIs</category><category>Common mistakes</category><category>DL</category><category>Deep Learning</category><category>DevOpsTools</category><category>EJB3</category><category>Extreme Programming</category><category>Forum</category><category>Full stack</category><category>JAXP</category><category>JFC  vs AWT</category><category>Java 7</category><category>Java Design Pattern</category><category>Java EE5</category><category>Java EE6</category><category>Java Mail</category><category>Java Tools</category><category>Kanban</category><category>Lean</category><category>ML</category><category>Master List Core Java</category><category>NN</category><category>Neural Networks</category><category>OOAD</category><category>PHP</category><category>Pesonal Interview Questions</category><category>StreamTokenizer</category><category>String</category><category>StringBuffer</category><category>Test Driven Development</category><category>UDDI4j</category><category>Version Control Software Systems</category><category>XP</category><category>developer</category><title>Interview Questions On Java,Java EE</title><description>Java, Java EE Q&amp;amp;A and more</description><link>http://www.interviewjava.com/</link><managingEditor>noreply@blogger.com (Unknown)</managingEditor><generator>Blogger</generator><openSearch:totalResults>391</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><xhtml:meta content="noindex" name="robots" xmlns:xhtml="http://www.w3.org/1999/xhtml"/><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-6558266313854474038</guid><pubDate>Sat, 19 Sep 2020 02:03:00 +0000</pubDate><atom:updated>2021-09-28T12:09:10.549+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Apache Hadoop</category><category domain="http://www.blogger.com/atom/ns#">BigData</category><category domain="http://www.blogger.com/atom/ns#">Hadoop</category><category domain="http://www.blogger.com/atom/ns#">Hadoop Data File System</category><category domain="http://www.blogger.com/atom/ns#">HDFS</category><title>BigData Apache Hadoop HDFS Interview QnA - II</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div dir="ltr" trbidi="on"&gt;This is the second post in continuation to my previous post on Apache Hadoop HDFS related interview questions. I&amp;nbsp; have covered almost 16 questions in this post.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;b&gt;Q 1:How data or file is written into Hadoop HDFS?&lt;/b&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;A: In order to write a file in HDFS:&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;- A client needs a handle to master i.e. namenode (master).&amp;nbsp;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;- The namenode provides the address of the datanodes (slaves) on which client will start writing the data.&amp;nbsp;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;- The client directly writes data on the datanodes by creating data write pipeline.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;b&gt;Q 2: What should be the block size in Hadoop, ideally?&lt;/b&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;A: There is no hard rule in nailing down the block size in Hadoop. It boils down to what size is the input data. If input data is huge then the block size of 128/256 MB is good to have for optimized performance. While dealing with small files, small block sizes are recommended. This is done by using parameter &lt;b&gt;dfs.block.size &lt;/b&gt;in order to override the default block size value.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;div dir="ltr" trbidi="on"&gt;Few points to remember:&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;- With larger block is being processed and some failure occur more work need to be done&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;- Fewer blocks if the block size is larger.&amp;nbsp;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;- Fewer blocks mean fewer nodes hence reduced throughput for parallel access&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;- Makes it possible for client to read/write more data without interacting with the Namenode, saving time.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;-Larger blocks reduce metadata size of the Namenode, reducing Namenode load.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;-Having fewer &amp;amp; larger blocks, also means longer tasks which in turn may not gain maximum parallelism&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;b&gt;Q 3:What is Heartbeat in Hadoop?&lt;/b&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;A: In Hadoop, by using heartbeat, Namenode and datanode communicate. Heartbeat is a signal that is sent by the datanode to the namenode after the regular interval to time to indicate its presence, i.e. to indicate that it is alive.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;- The default heartbeat interval is 3 seconds.&amp;nbsp;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;- If there is no heartbeat from DataNode to NameNode in ten minutes, then NameNode considers the DataNode to be out of service. This triggers blocks replicas hosted by that DataNode to be made unavailable.&amp;nbsp;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;- The NameNode then schedules the creation of new replicas of those blocks on other DataNodes.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;b&gt;Q 4:How often DataNode send heartbeat to NameNode in Hadoop?&lt;/b&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;A: The default is 3 seconds.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;b&gt;Q 5:How HDFS helps NameNode in scaling in Hadoop?&lt;/b&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;A: The primary benefit of Hadoop is its Scalability of cluster by adding more nodes.&amp;nbsp;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;Two types of Scalability in Hadoop: Vertical and Horizontal&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;Vertical scalability/Scale up:&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;- Increase the hardware capacity of the individual machine.&amp;nbsp;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;- Add more RAM or CPU to your existing system to make it more robust and powerful.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;Horizontal scalability/Scale out&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;- Addition of more machines or setting up the cluster.&amp;nbsp;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;- Add more nodes to existing cluster and most importantly, you can add more machines without stopping the system, so no downtime or green zone, nothing of such sort while scaling out. So at last to meet your requirements you will have more machines working in parallel.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;HDFS has two main layers:-&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;1. Namespace – manages directories, files and blocks. It supports file system operations such as creation, modification, deletion and listing of files and directories.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;2. Block Storage – Block storage provides operations like creation, deletion, modification and getting the location of the blocks. It also takes care of replica placement and replication.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;In architecture without HDFS Federation, datanode can be scaled both vertically &amp;amp; horizontally. But namenode was scaled only vertically not horizontally. This architecture has multiple datanodes, but it has only one NameNodefor (one namespace) for all datanodes .This limits the number of blocks, files, and directories supported on the file system.&amp;nbsp;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;In order to overcome this limitation HDFS Federation is introduced, wherein scaling the namenode horizontally is possible through use of multiple independent Namenodes/namespaces. In HDFS Federation, Namenodes do not require coordination with each other as the namenode is independent. All the datanodes are used as common storage for blocks by all the Namenodes.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;b&gt;Q 6:What is Secondary NameNode in Hadoop HDFS?&lt;/b&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;A: Secondary NameNode in hadoop is a specially dedicated node in HDFS cluster. It's main function is to take checkpoints of the file system metadata present on namenode. It is not a backup namenode. It just checkpoints namenode’s file system namespace. The Secondary NameNode is a helper to the primary NameNode but not replace for primary namenode.As the NameNode is the single point of failure in HDFS, if NameNode fails entire HDFS file system is lost. So in order to overcome this, Hadoop implemented Secondary NameNode whose main function is to store a copy of FsImage file and edits log file.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;b&gt;Q 7:Ideally what should be the replication factor in Hadoop?&lt;/b&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;A: The replication factor is&amp;nbsp;the number of times Hadoop framework replicate each and every Data Block, in order to provide Fault Tolerance. The default replication factor is 3. It can be configured as per the requirement; can be increased (more than 3.) or decreased(less than 3) as per need.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;b&gt;Q 8:How one can change Replication factor when Data is already stored in HDFS&lt;/b&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;A:The replication factor can be set in the HDFS configuration file( hdfs-site.xml).It is used to set global replication factor for the entire cluster and only work on the newly created files but not on the existing files.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;e.g.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;hadoop fs –setrep –w 3 /file/filename.xml //Change the replication factor on a per-file basis :&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;hadoop fs –setrep –w 3 -R /directory/dir.xml//change the replication factor for files that already exist in HDFS.-R flag would recursively change the replication factor on all the files&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;b&gt;Q 9:Why HDFS performs replication, although it results in data redundancy in Hadoop?&lt;/b&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;A: This is done in order to improve fault tolerance and downtime. In the process it improves overall data reliability.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;b&gt;Q 10:What is Safemode in Apache Hadoop?&lt;/b&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;A: A Safemoder in Hadoop is meant for NameNode wherein it does not allow to write to a file. During Safemode, the entire cluster remains in read only mode.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;b&gt;Q 11:What happen when namenode enters in safemode in hadoop?&lt;/b&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;A: When NameNode enters in SafeMode in Hadoop, no changes are allowed to file system. The file system is loaded from its last saved fsimage to memory and log file is edited.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;b&gt;Q 12:How to remove safemode of namenode forcefully in HDFS?&lt;/b&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;A: There is one command to leave SafeMode:&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;span style="background-color: #f9f9f9; color: #444444; font-family: Inconsolata, Consolas, Monaco, &amp;quot;Lucida Console&amp;quot;, monospace; font-size: 15.75px;"&gt;hadoop dfsadmin -safemode leave&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;span style="background-color: #f9f9f9; color: #444444; font-family: Inconsolata, Consolas, Monaco, &amp;quot;Lucida Console&amp;quot;, monospace; font-size: 15.75px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;b&gt;Q 13:How to create the directory when Name node is in safe mode?&lt;/b&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;A: One has to come out of SafeMode, only then a directory can be created else error while creating a directory would keep popping up&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;b&gt;Q 14:What is difference between a MapReduce InputSplit and HDFS block&lt;/b&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;A:&amp;nbsp;HDFS Block is the physical representation of data in Hadoop. While MapReduce InputSplit is the logical representation of data present in the block in Hadoop. It is basically used during data processing in MapReduce program or other processing techniques.&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;b&gt;Q 15:Explain Small File Problem in Hadoop&lt;/b&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;A:A HDFS block size is having default value as 64MB. HDFS is not designed to handle small files efficiently : it is primarily designed for streaming access of large files. Reading through small files normally causes lots of seeks and lots of hopping from datanode to datanode to retrieve each small file, all of which is an inefficient data access pattern&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;&lt;b&gt;Q 16:How to create Users in Hadoop HDFS?&lt;/b&gt;&lt;/div&gt;&lt;div dir="ltr" trbidi="on"&gt;A: There are following steps involved in making users in Hadoop HDFS:&lt;/div&gt;&lt;br /&gt;
  
&lt;div dir="ltr" trbidi="on"&gt;a. Create&amp;nbsp;&lt;span face="NeuePlakText-Regular" style="background-color: white; color: #333333; font-size: 16px;"&gt;a user on your Host (client machine) and add it to "Hadoop" group&lt;/span&gt;&lt;/div&gt;# useradd pogouser -G Hadoop&lt;br /&gt;
  
&lt;div dir="ltr" trbidi="on"&gt;&lt;span style="background-color: white; color: #333333; font-size: 16px;"&gt;&lt;br /&gt;b. Create Home directory for this user on HDFS.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

# su - hdfs -c "hdfs dfs -mkdir /user/pogouser"&lt;br /&gt;# su - hdfs -c "hdfs dfs -chown newuser1:hadoop /user/pogouser"&lt;br /&gt;# su - hdfs -c "hdfs dfs -chmod 755 /user/pogouser"&lt;br /&gt;&lt;br /&gt;
and then can work on hdfs like putting a file to HDFS.&lt;br /&gt;&lt;br /&gt;
# su - pogouser&lt;br /&gt;
# hdfs dfs -put /etc/passwd &amp;nbsp;/user/pogouser&lt;br /&gt;
# hdfs dfs -cat &amp;nbsp;/user/pogouser/passwd&lt;br /&gt;
&lt;div class="separator" style="clear: both;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiavo7ZlLUXnXm05AIbgtIAdip6_sayUHaXhNN9EZh0f_tlZMYPAqog9eLD6MM35MeHTfI9RSdp8M8qf6Y3r05WyQsVAM82nicGSFz6wh2TWH8CDpsejel_YqOCnJBJVr0tuLH7jfP4LpUx/s537/coreJava.jpg" style="display: block; padding: 1em 0; text-align: center; "&gt;&lt;img alt="" border="0" width="320" data-original-height="390" data-original-width="537" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiavo7ZlLUXnXm05AIbgtIAdip6_sayUHaXhNN9EZh0f_tlZMYPAqog9eLD6MM35MeHTfI9RSdp8M8qf6Y3r05WyQsVAM82nicGSFz6wh2TWH8CDpsejel_YqOCnJBJVr0tuLH7jfP4LpUx/s320/coreJava.jpg"/&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2020/01/bigdata-apache-hadoop-hdfs-interview.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiavo7ZlLUXnXm05AIbgtIAdip6_sayUHaXhNN9EZh0f_tlZMYPAqog9eLD6MM35MeHTfI9RSdp8M8qf6Y3r05WyQsVAM82nicGSFz6wh2TWH8CDpsejel_YqOCnJBJVr0tuLH7jfP4LpUx/s72-c/coreJava.jpg" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-5149956999317952959</guid><pubDate>Mon, 13 Jan 2020 16:25:00 +0000</pubDate><atom:updated>2021-09-28T12:09:28.143+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Apache Hadoop</category><category domain="http://www.blogger.com/atom/ns#">BigData</category><category domain="http://www.blogger.com/atom/ns#">Hadoop</category><category domain="http://www.blogger.com/atom/ns#">Hadoop Data File System</category><category domain="http://www.blogger.com/atom/ns#">HDFS</category><title>Big Data - Apache Hadoop HDFS Interview Questions And Answers</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div style="background-color: white; border: 0px; font-stretch: inherit; line-height: inherit; margin-bottom: 1.6em; margin-top: 1.6em; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;"&gt;
In first post on &lt;a href="https://www.interviewjava.com/2019/09/what-is-apache-hadoop-framework-and-its.html"&gt;Apache Hadoop technology&lt;/a&gt;,&amp;nbsp; it was briefly touched upon what Apache Hadoop technology is, what is its use, what are its constituents. In this blog, main focus is on 
HDFS(Hadoop Distributed File Systems)
related interview questions which are most frequently asked. HDFS is the main storage for large datasets and forms a key part of Hadoop Architecture. HDFS handles streaming data and running clusters on the commodity hardware. In this first list of questions on HDFS, the focus is to provide QnA in one single post in an effective manner. Please share your queries in comments section and if you like the post, please share it with like minded friends of yours.&lt;br /&gt;
&lt;br /&gt;
1) How is HDFS different from Network Attached Storage(NAS)?&lt;br /&gt;
&lt;u&gt;Answer&lt;/u&gt;:&lt;br /&gt;
NAS is computer level data storage server which requires dedicated hardware. HDFS is a distributed filesystem(in form of data blocks) using clusters of machines having local hard drives. It is cost effective as compared with NAS.&lt;br /&gt;
&lt;br /&gt;
HDFS is designed to work with MapReduce system for analysis as computation are move to data. NAS is unsuitable for MapReduce as data is stored separately from the computations. In NAS, data is stored first and then on top of that analysis/computations are done. It gets really difficult to work on NAS as data grows exponentially.&lt;br /&gt;
&lt;br /&gt;
As HDFS is distributed and clustered, it has high availability and reliability as compared with NAS.&lt;br /&gt;
&lt;br /&gt;
2) What are NameNode and DataNode in HDFS? How are they different from each other?&lt;br /&gt;
&lt;u&gt;Answer:&lt;/u&gt;&lt;br /&gt;
&lt;div&gt;
NameNode is the master node which primarily stores metadata information of data blocks like location of the block, name of the block, replication factors etc. It regulates data access for actual file for end clients. It also assigns work to slaves(i.e. DataNode). NameNode is responsible for a faster retrieval of main data and must be stored/hosted on a reliable hardware&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
DataNode is the slave node/worker node in Hadoop cluster which actually stores business data. As instructed from Master, DataNode performs creation/replication/deletion of data blocks. DataNode requires huge amount of storage for its operation and commodity hardware can be used for hosting it.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
3) What is metadata in Hadoop?&lt;br /&gt;
&lt;u&gt;Answer:&lt;/u&gt;&lt;br /&gt;
Metadata means data about data. In Hadoop, both NameNode and DataNode store metadata information. The Master node(NameNode) contains HDFS state namespace(metadata of all files and directories, information about blocks(name, location etc.)) and transaction information(edit logs). Slave nodes contain checksum(.meta file) metadata for each and every particular block on slaves nodes.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
4) How NameNode handles DataNode failures in HDFS?&lt;br /&gt;
&lt;u&gt;Answer:&lt;/u&gt;&lt;br /&gt;
HDFS follows master-slave architecture wherein master is NameNode and slave is DataNode. There is&amp;nbsp; just one NameNode containing metadata. The multiple numbers of DataNodes are linked to the NameNode which actually is responsible for storing actual data in HDFS.&lt;br /&gt;
&lt;br /&gt;
Each DataNode sends Heartbeat, every 2 minutes, implying that DataNode is functioning properly. It means all data blocks are getting reported to NameNode.&lt;br /&gt;
&lt;br /&gt;
When NameNode does not receive heartbeat signals from Data node, it assumes that the data node is either dead or non-functional.When DataNode is declared dead/non-functional, all the data blocks it hosts are transferred to the other data nodes with which the blocks are replicated initially.&lt;br /&gt;
&lt;br /&gt;
This is how DataNode failures are handled by NameNode.&lt;br /&gt;
&lt;br /&gt;
5) How much Metadata will be created on NameNode in Hadoop?&lt;br /&gt;
&lt;u&gt;Answer:&lt;/u&gt;&lt;br /&gt;
NameNode(NN) metadata stores:&lt;br /&gt;
&lt;br /&gt;
- file to Block mapping&lt;br /&gt;
- locations of blocks on DataNodes&lt;br /&gt;
- active data nodes&lt;br /&gt;
- a bunch of other metadata&lt;br /&gt;
&lt;br /&gt;
This is all stored in memory on the NN.&lt;br /&gt;
&lt;br /&gt;
The things stored on disk are:&lt;br /&gt;
- fsimage&lt;br /&gt;
- edit log&lt;br /&gt;
- status logs.&lt;br /&gt;
&lt;br /&gt;
a) fsimage – An fsimage file contains the complete state of the file system at a point in time. Every file system modification is assigned a unique, monotonically increasing transaction ID. An fsimage file represents the file system state after all modifications up to a specific transaction ID.&lt;br /&gt;
&lt;br /&gt;
b) edits – An edits file is a log that lists each file system change (file creation, deletion or updation) that was made after the most recent fsimage.&lt;br /&gt;
&lt;br /&gt;
When a file is put into HDFS, it is split into blocks (of configurable size).&lt;br /&gt;
&lt;br /&gt;
Let’s say we have a file called “file.txt” that is 1GB (1000MB) and our block size is 128MB. We will end up with 7 128MB blocks and a 104MB block. The NameNode keeps track of the fact that “file.txt” in HDFS maps to these eight blocks and three replicas of each block. DataNodes store blocks, not files, so the mapping is important to understanding where our data is and what our data is.&lt;br /&gt;
&lt;br /&gt;
Corresponding to a block 150 bytes (roughly) of metadata is created, Since there are 8 blocks with replication factor 3 i.e. 24 blocks. Hence 150×24 = 3600 bytes of metadata will be created.&lt;br /&gt;
&lt;br /&gt;
On disk, the NameNode stores the metadata for the file system. This includes file and directory permissions, ownerships, and assigned blocks in the fsimage and the edit logs. In properly configured setups, it also includes a list of DataNodes that make up the HDFS (dfs.include parameter) and DataNodes that are to be removed from that list (dfs.exclude parameter).&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;6) What is Safe Mode and when does NameNode enter in Safe Mode?&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;u&gt;Answer&lt;/u&gt;:&lt;/span&gt;&lt;br /&gt;
Safemode is a maintenance state of NameNode. In Safemode, a NameNode doesn’t allow any modifications to the file system, HDFS cluster remains in read-only state and doesn’t replicate or delete data blocks.&lt;br /&gt;
&lt;br /&gt;
When a HDFS cluster is unstable, modifications in datablocks are prevented by making HDFS Safemode. So no deletion or replication of data happens over data blocks.&lt;br /&gt;
&lt;br /&gt;
Status of Safemode :&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;hadoop dfsadmin –safemode get&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
To Manually enter Safemode:&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;hadoop dfsadmin –safemode enter&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
To Exit Safemode:&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;hadoop dfsadmin -safemode leave&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
7) How to restart all the daemons in Hadoop HDFS?&lt;br /&gt;
&lt;u&gt;Answer&lt;/u&gt;:&lt;br /&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;span style="border: 0px; box-sizing: inherit; color: #0c0d0e; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;start-all.sh &amp;amp; stop-all.sh :&lt;/span&gt;&lt;span style="color: #0c0d0e;"&gt;&amp;nbsp;These commands are used to start and stop Hadoop daemons all at once.&amp;nbsp; These commands are deprecated.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
8) What are the modes in which Apache Hadoop run?&lt;br /&gt;
&lt;u&gt;Answer&lt;/u&gt;:&lt;br /&gt;
There are three modes in which Apache Hadoop can run:&lt;br /&gt;
&lt;br /&gt;
a. Standalone(Local) Mode&lt;br /&gt;
It is default mode under which Hadoop is configured to run with no distributed mode. Runs as a single Java process. This mode utilizes the local file system. This mode useful for debugging and usually the fastest mode in Hadoop.&lt;br /&gt;
&lt;br /&gt;
b. Pseudo Distributed Mode(Single node)&lt;br /&gt;
Runs on a single node in a Pseudo Distributed mode wherein each daemon runs on seperate java process. Custom configuration is required( core-site.xml, hdfs-site.xml, mapred-site.xml ). Here HDFS is utilized for input and ouput. Useful for testing and debugging purposes.&lt;br /&gt;
&lt;br /&gt;
c. Fully Distributed Mode&lt;br /&gt;
Production mode of running Hadoop wherein typically one machine in cluster is designated as NameNode and another as Resource Manager exclusively. These are masters. All other nodes act as Data Node and Node Manager which are the slaves. Configuration parameters and environment need to specified for Hadoop Daemons.Key features of this mode are fully distributed computing capability, reliability, fault tolerance and scalability.&lt;br /&gt;
&lt;br /&gt;
9) On what basis name node distribute blocks across the data nodes in HDFS?&lt;br /&gt;
&lt;u&gt;Answer&lt;/u&gt;:&lt;br /&gt;
Hadoop Data Blocks distribution strategy across clusters is having trade offs like data reliability, write and read bandwidth.The basic placement policy places the first block on the client.The second replica is placed on a different rack than the first one (also known as off rack) while third replica is placed on the same rack as the second one but in a different datanode. Further replicas are placed in random nodes avoiding same rack placement.&lt;br /&gt;
&lt;br /&gt;
Hadoop also has a Balancer daemon.&amp;nbsp; It distributes blocks by moving them from over-utilized datanodes to under-utilized datanodes while keeping the basic placement policy in mind.&lt;br /&gt;
&lt;br /&gt;
10) What is a block in HDFS and why it has a size of 64MB?&lt;br /&gt;
&lt;u&gt;Answer:&lt;/u&gt;&lt;br /&gt;
In Hadoop, large sized files are broken down into smaller chunks known as data blocks. HDFS Data blocks are the smallest unit of data. These data blocks are sequentially stored&amp;nbsp;on a physical disk that makes reading and writing a block fast. Lets say you have a 128Mb file. With a 4k block size, you'd have to make 32k requests to get that file (1 request per block). In HDFS, each request has to be processed by the Name Node to figure out where that block can be found. That's a lot of traffic! If you use 64MB blocks, the number of requests goes down to 2.&lt;br /&gt;
&lt;br /&gt;
11) What is Fault Tolerance in Hadoop HDFS?&lt;br /&gt;
&lt;u&gt;Answer:&lt;/u&gt;&lt;br /&gt;
HDFS is highly fault tolerant. It handles faults by the process of replication. firstly data is broken down into blocks and these blocks are distributed across different machines present in the cluster. After this, replica of each block is created on other machines present in the cluster. By default HDFS creates 3 copies of a file on other machines present in the cluster. So due some reason if any machine on the HDFS goes down or fails, then also user can easily access that data from other machines in the cluster in which replica of file is present. Hence HDFS provides faster file read and write mechanism, due to its unique feature of distributed storage.&lt;br /&gt;
&lt;br /&gt;
12) Why is block size set to 128 MB in HDFS?&lt;br /&gt;
&lt;u&gt;Answer:&lt;/u&gt;&lt;br /&gt;
The default size of a block in HDFS is 128 MB (Hadoop 2. x) and 64 MB (Hadoop 1. x). The reason of having block size of 128MB is same as mentioned in Question#12 given above.&lt;br /&gt;
&lt;br /&gt;
13) What happens if the block on Hadoop HDFS is corrupted?&lt;br /&gt;
&lt;u&gt;Answer:&lt;/u&gt;&lt;br /&gt;
Though HDFS is quite robust when it comes to fault tolerance, yet there are cases when HDFS corrupts files then there are two ways to rectify this situation:&lt;br /&gt;
&lt;br /&gt;
a. HDFS fsck :&amp;nbsp;HDFS fsck command(run "hdfs fsck") is an offline process that examines on-disk structures.This command operates only on data(DataNodes in HDFS case) and determines which files contain corrupt blocks, and gives you options about how to fix them.&lt;br /&gt;
&lt;br /&gt;
b. NameNode recovery : HDFS is highly tolerant and available due to replication process of data blocks which are distributed in cluster. If there is "x" replication factor then there are "x-1" replicas of a data block. Usually HDFS does auto correction by identifying the corrupt blocks, replacing them with good blocks and maintains the replication factor.&lt;br /&gt;
Sart the NameNode with the -recover flag to activate recovery mode, like:&lt;br /&gt;
./bin/hadoop namenode -recover&lt;br /&gt;
&lt;br /&gt;
14)How data or file is read in Hadoop HDFS?&lt;br /&gt;
&lt;u&gt;Answer:&lt;/u&gt;&lt;br /&gt;
Data or file read in HDFS is a sequential process. There are following steps involved in "read" operation:&lt;br /&gt;
&lt;br /&gt;
a. A client initiates read request by calling 'open()' method of FileSystem object; it is an object of type DistributedFileSystem.&lt;br /&gt;
&lt;br /&gt;
b. This object connects to namenode using RPC and gets metadata information such as the locations of the blocks of the file.&lt;br /&gt;
&lt;br /&gt;
c. In response to this metadata request, addresses of the DataNodes having a copy of that block is returned back.&lt;br /&gt;
&lt;br /&gt;
d. Once addresses of DataNodes are received, an object of type FSDataInputStream is returned to the client. FSDataInputStream contains DFSInputStream which takes care of interactions with DataNode and NameNode. A client invokes 'read()' method which causes DFSInputStream to establish a connection with the first DataNode with the first block of a file.&lt;br /&gt;
&lt;br /&gt;
e.Data is read in the form of streams wherein client invokes 'read()' method repeatedly. This process of read() operation continues till it reaches the end of block.&lt;br /&gt;
&lt;br /&gt;
f.Once the end of a block is reached, DFSInputStream closes the connection and moves on to locate the next DataNode for the next block&lt;br /&gt;
&lt;br /&gt;
g.Once a client has done with the reading, it calls a close() method.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More questions will follow in my subsequent post.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiavo7ZlLUXnXm05AIbgtIAdip6_sayUHaXhNN9EZh0f_tlZMYPAqog9eLD6MM35MeHTfI9RSdp8M8qf6Y3r05WyQsVAM82nicGSFz6wh2TWH8CDpsejel_YqOCnJBJVr0tuLH7jfP4LpUx/s537/coreJava.jpg" style="display: block; padding: 1em 0; text-align: center; "&gt;&lt;img alt="" border="0" width="320" data-original-height="390" data-original-width="537" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiavo7ZlLUXnXm05AIbgtIAdip6_sayUHaXhNN9EZh0f_tlZMYPAqog9eLD6MM35MeHTfI9RSdp8M8qf6Y3r05WyQsVAM82nicGSFz6wh2TWH8CDpsejel_YqOCnJBJVr0tuLH7jfP4LpUx/s320/coreJava.jpg"/&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2020/01/big-data-apache-hadoop-hdfs-interview.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiavo7ZlLUXnXm05AIbgtIAdip6_sayUHaXhNN9EZh0f_tlZMYPAqog9eLD6MM35MeHTfI9RSdp8M8qf6Y3r05WyQsVAM82nicGSFz6wh2TWH8CDpsejel_YqOCnJBJVr0tuLH7jfP4LpUx/s72-c/coreJava.jpg" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-2635599108343681062</guid><pubDate>Sun, 29 Dec 2019 09:56:00 +0000</pubDate><atom:updated>2019-12-29T15:36:23.705+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">AI</category><category domain="http://www.blogger.com/atom/ns#">Artificial Intelligence</category><category domain="http://www.blogger.com/atom/ns#">Deep Learning</category><category domain="http://www.blogger.com/atom/ns#">DL</category><category domain="http://www.blogger.com/atom/ns#">Machine Learning</category><category domain="http://www.blogger.com/atom/ns#">ML</category><category domain="http://www.blogger.com/atom/ns#">Neural Networks</category><category domain="http://www.blogger.com/atom/ns#">NN</category><title>What is the difference between AI(Artificial Intelligence) and ML(Machine Learning)?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Most of the times Artificial Intelligence(AI) and Machine Learning(ML) are used interchangeably but they are two distinct terminologies.&lt;br /&gt;
&lt;br /&gt;
AI is an umbrella term under which ML lies. AI is a broad concept which focuses on building smart/intelligent machines/robots/software systems.&lt;br /&gt;
&lt;br /&gt;
ML is a process by which a machine auto trains itself for achieving a certain objective over datasets. While going through multiple iterations, machines get more and more refined intelligence, in an autonomous fashion. Machines learn and improve its accuracies eventually. ML allows machine to recognize patterns and make predictions.Some real world examples of ML are speech recognition/conversational technologies, language translations, object recognition and other tasks.&lt;br /&gt;
&lt;br /&gt;
There are underlying concepts like Automated Speech Recognition(ASR) and Natural Language Processing(NLP) in AI which overlap with ML.&lt;br /&gt;
&lt;br /&gt;
Deep Learning(DL) is a subset/class of ML algorithms which involves ANN(Artificial Neural Networks). Learning can be supervised, semi-supervised or unsupervised. DL concepts can be applied in image processing, speech recognition, designing drugs, board games, machine translations etc.&lt;br /&gt;
&lt;br /&gt;
The intent of this post is to pick these really complex topics at a very high level rather deep diving each one of them.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBnMNbWoB_7O1SS0K0olnS_nEFUVCWe-QWEmCVJ1huHM0uwLO7Z67NhUio_2xwGBNphpygkVAj0zJIefw8xU4BoW4UzBoyBjv1b2Qk3i0MxsrVvKwANEkYcmhazt8t8u25o-dbPbwD_VlJ/s1600/AI-2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="573" data-original-width="577" height="317" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBnMNbWoB_7O1SS0K0olnS_nEFUVCWe-QWEmCVJ1huHM0uwLO7Z67NhUio_2xwGBNphpygkVAj0zJIefw8xU4BoW4UzBoyBjv1b2Qk3i0MxsrVvKwANEkYcmhazt8t8u25o-dbPbwD_VlJ/s320/AI-2.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2019/12/what-is-difference-between-aiartificial.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBnMNbWoB_7O1SS0K0olnS_nEFUVCWe-QWEmCVJ1huHM0uwLO7Z67NhUio_2xwGBNphpygkVAj0zJIefw8xU4BoW4UzBoyBjv1b2Qk3i0MxsrVvKwANEkYcmhazt8t8u25o-dbPbwD_VlJ/s72-c/AI-2.JPG" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-6788119839170120441</guid><pubDate>Wed, 25 Dec 2019 05:56:00 +0000</pubDate><atom:updated>2019-12-25T11:43:50.106+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Common mistakes</category><category domain="http://www.blogger.com/atom/ns#">Java</category><title>What are some of the common mistakes Java developers, especially beginners make?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;Some of the most common mistakes that are
committed by Java developers, especially who are newbies, are enumerated as
given below:&lt;/span&gt;&lt;span style="color: #5e5e5e; font-family: &amp;quot;open sans&amp;quot; , serif; font-size: 11.5pt; line-height: 107%;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;/span&gt;&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&lt;i style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&lt;u style="background-position-x: 0px; background-position-y: 0px; outline: 0px; transition: all 0s ease 0s;"&gt;Not writing thread safe
Java program&lt;/u&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #5e5e5e; font-family: &amp;quot;open sans&amp;quot; , serif; font-size: 11.5pt; line-height: 107%;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;/span&gt;&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;A code is
called a thread safe when a thread is modifying or reading shared data, no other
thread can access it in a way that changes the data. So, when code depends upon
a certain order of execution for correctness then other synchronization
techniques are to be used.&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #5e5e5e; font-family: &amp;quot;open sans&amp;quot; , serif; font-size: 11.5pt; line-height: 107%;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;/span&gt;&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&lt;i style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&lt;u style="background-position-x: 0px; background-position-y: 0px; outline: 0px; transition: all 0s ease 0s;"&gt;Poor exception handling&lt;/u&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #5e5e5e; font-family: &amp;quot;open sans&amp;quot; , serif; font-size: 11.5pt; line-height: 107%;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;/span&gt;&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;While one
throws top level exception object, it becomes difficult to trace to exact root
cause of any problem in code, at every first instance. A good coder takes care
of throwing explicit exception by proper handling of same.&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #5e5e5e; font-family: &amp;quot;open sans&amp;quot; , serif; font-size: 11.5pt; line-height: 107%;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;/span&gt;&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&lt;i style="background-position-x: 0px; background-position-y: 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&lt;u style="background-position-x: 0px; background-position-y: 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&lt;/u&gt;&lt;/i&gt;&lt;/span&gt;&lt;i style="background-position-x: 0px; background-position-y: 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&lt;u style="background-position-x: 0px; background-position-y: 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;Poor
indentation, formatting and documentation&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&amp;nbsp;of code being done
leading to poor maintainability&lt;/span&gt;&lt;span style="color: #5e5e5e; font-family: &amp;quot;open sans&amp;quot; , serif; font-size: 11.5pt; line-height: 107%;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;/span&gt;&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;A well
indented code with proper documentation helps in better maintainability.&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #5e5e5e; font-family: &amp;quot;open sans&amp;quot; , serif; font-size: 11.5pt; line-height: 107%;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;/span&gt;&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&lt;i style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&lt;u style="background-position-x: 0px; background-position-y: 0px; outline: 0px; transition: all 0s ease 0s;"&gt;Hard coding credentials&lt;/u&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #5e5e5e; font-family: &amp;quot;open sans&amp;quot; , serif; font-size: 11.5pt; line-height: 107%;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;/span&gt;&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;A very
commonly done mistake by beginners. The credentials must be handled in an
independent manner from the code, viz. configuration files having them in
encrypted format&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #5e5e5e; font-family: &amp;quot;open sans&amp;quot; , serif; font-size: 11.5pt; line-height: 107%;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;/span&gt;&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&lt;i style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&lt;u style="background-position-x: 0px; background-position-y: 0px; outline: 0px; transition: all 0s ease 0s;"&gt;Failing to modularize code&lt;/u&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #5e5e5e; font-family: &amp;quot;open sans&amp;quot; , serif; font-size: 11.5pt; line-height: 107%;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;/span&gt;&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;Do not
make your code look like a procedural programming one. A better modularized
code implementing Object Oriented programming concepts is the best way.&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #5e5e5e; font-family: &amp;quot;open sans&amp;quot; , serif; font-size: 11.5pt; line-height: 107%;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;/span&gt;&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&lt;i style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&lt;u style="background-position-x: 0px; background-position-y: 0px; outline: 0px; transition: all 0s ease 0s;"&gt;Lack of code optimization practices&lt;/u&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #5e5e5e; font-family: &amp;quot;open sans&amp;quot; , serif; font-size: 11.5pt; line-height: 107%;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;/span&gt;&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;It is
understood for a newbie to be oblivious of code optimization techniques but
being conscious of same from early days go a long way.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #5e5e5e; font-family: &amp;quot;open sans&amp;quot; , serif; font-size: 11.5pt; line-height: 107%;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;/span&gt;&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;The most prominent example is
when excessive garbage allocation is done. While creating many short-lived objects
the garbage collector executes continuously, it degrades application
performance. An example is of use of String objects which are immutable, each
time a different String object is created for storing a new space in memory.
The solution to deal it is to use mutable alternatives when instancing new
objects.&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #5e5e5e; font-family: &amp;quot;open sans&amp;quot; , serif; font-size: 11.5pt; line-height: 107%;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;/span&gt;&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;Proper allocation of heap size:
Start with minimum heap size and gradually increase the size as the need
multiplies. This&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: #5e5e5e; font-family: &amp;quot;open sans&amp;quot; , serif; font-size: 11.5pt; line-height: 107%;"&gt;mechanism&lt;/span&gt;&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&amp;nbsp;will
keep a tab on speed of execution of code.&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #5e5e5e; font-family: &amp;quot;open sans&amp;quot; , serif; font-size: 11.5pt; line-height: 107%;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;/span&gt;&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;&lt;br style="outline: 0px; transition: all 0s ease 0s;" /&gt;
&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;Better concurrency control&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white; color: #5e5e5e; font-family: &amp;quot;open sans&amp;quot; , serif; font-size: 11.5pt; line-height: 107%;"&gt;techniques&lt;/span&gt;&lt;span style="background: white; border: none 1.0pt; color: #5e5e5e; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 11.5pt; line-height: 107%; padding: 0in;"&gt;&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&amp;nbsp;help in running multiple
programs in parallel efficiently.&amp;nbsp;&lt;/span&gt;&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;It is advised to use optimistic locking with detached
entities or an&lt;span style="background-position-x: 0px; background-position-y: 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;code style="background-position: 0px 0px; border-radius: 4px; box-sizing: border-box; outline: 0px; transition: all 0s ease 0s;"&gt;&lt;span style="background: #f9f2f4; border: none 1.0pt; color: #c7254e; font-size: 10.5pt; line-height: 107%; padding: 0in;"&gt;EXTENDEDPersistence
Context&lt;/span&gt;&lt;/code&gt;&lt;span style="background: white; border: none 1.0pt; color: #222635; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 10.5pt; line-height: 107%; padding: 0in;"&gt;&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNxz7tNV47CV_g4GNzMt0imwf6JgzLMvZjyrQFUhD2VY2wMtcP9bCpAjCeUUlILTRjITNg8L-lB1FIgSAAT5tlV9SZBXCHIMrz0D0GPUFRvZeWf1xCOGnaVjgaRgf52XoymOlPtZqgoX_k/s1600/mistakes.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="265" data-original-width="325" height="260" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNxz7tNV47CV_g4GNzMt0imwf6JgzLMvZjyrQFUhD2VY2wMtcP9bCpAjCeUUlILTRjITNg8L-lB1FIgSAAT5tlV9SZBXCHIMrz0D0GPUFRvZeWf1xCOGnaVjgaRgf52XoymOlPtZqgoX_k/s320/mistakes.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="background: white; border: none 1.0pt; color: #222635; font-family: &amp;quot;inherit&amp;quot; , serif; font-size: 10.5pt; line-height: 107%; padding: 0in;"&gt;&lt;span style="background-position: 0px 0px; outline: 0px; transition: all 0s ease 0s;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2019/12/what-are-some-of-common-mistakes-java.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNxz7tNV47CV_g4GNzMt0imwf6JgzLMvZjyrQFUhD2VY2wMtcP9bCpAjCeUUlILTRjITNg8L-lB1FIgSAAT5tlV9SZBXCHIMrz0D0GPUFRvZeWf1xCOGnaVjgaRgf52XoymOlPtZqgoX_k/s72-c/mistakes.jpg" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-414434388040844311</guid><pubDate>Sat, 21 Dec 2019 07:30:00 +0000</pubDate><atom:updated>2019-12-21T13:12:14.362+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">developer</category><category domain="http://www.blogger.com/atom/ns#">Full stack</category><category domain="http://www.blogger.com/atom/ns#">Java</category><title>What does it take to be a fullstack Java developer?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;A frequent need in modern professional Java technology world is a full stack Java developer. All technology&amp;nbsp;companies are bullish on full stack developers in order to save big bucks. How can one become a full stack Java developer, a question which lingers with who has just started get his/her feet wet in the technology.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;The answer is straightforward : one has to look after all technical building components which are responsible for making an enterprise level solution i.e. presentation layer, application logic layer/server side programming for application logic and data logic layer.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;A fair hands-on knowledge of following pieces in order to be a full stack Java developer:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #333333; font-size: 16px;"&gt;1. &lt;b&gt;Web Front-End&lt;/b&gt;:&amp;nbsp;&lt;/span&gt;&lt;span style="color: #333333; font-size: 16px;"&gt;HTML, CSS, JavaScript&lt;/span&gt;&lt;span style="color: #333333; font-size: 16px;"&gt;.&amp;nbsp; Learn about responsive UI and UI frameworks. Learn JavaScript based MVC frameworks like AngularJS.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: #333333; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #333333; font-size: 16px;"&gt;Another one is&amp;nbsp;&lt;/span&gt;&lt;span style="color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;Bootstrap Javascript which is a free and open-source CSS framework,&amp;nbsp;&lt;/span&gt;&lt;span style="color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;containing CSS- and JavaScript-based design templates(optional) for typography, forms, buttons, navigation and other interface components. It is&lt;/span&gt;&lt;span style="color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&amp;nbsp;used for responsive, mobile-first front-end web development.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;span style="color: #333333; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;span style="color: #333333; font-size: 16px;"&gt;2. &lt;b&gt;Server Side programming:&lt;/b&gt; which provides&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #333333; font-size: 16px;"&gt;&amp;nbsp;Java Enterprise frameworks for Web development (&lt;a href="https://www.interviewjava.com/search?q=servlets" target="_blank"&gt;Servlets&lt;/a&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style="color: #333333; font-size: 16px;"&gt;&lt;a href="https://www.interviewjava.com/search?q=JSP" target="_blank"&gt;JSP&lt;/a&gt;&lt;/span&gt;&lt;span style="color: #333333; font-size: 16px;"&gt;, JSF) and/or other Java frameworks like &lt;a href="https://www.interviewjava.com/search?q=Spring" target="_blank"&gt;Spring&lt;/a&gt;, &lt;a href="https://www.interviewjava.com/search/label/EJB?&amp;amp;max-results=10" target="_blank"&gt;EJB&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;span style="color: #333333; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;3. &lt;b&gt;Data Logic Layer End&lt;/b&gt;:&amp;nbsp;&lt;/span&gt;&lt;span style="color: #333333; font-size: 16px;"&gt;Frameworks like Java ORM Frameworks (&lt;a href="https://www.interviewjava.com/search/label/Hibernate?&amp;amp;max-results=10" target="_blank"&gt;Hibernate&lt;/a&gt;, JPA) or create your own database ecosystem using helper classes with the&amp;nbsp;&lt;/span&gt;&lt;span style="color: #333333; font-size: 16px;"&gt;DAO Pattern&lt;/span&gt;&lt;span style="color: #333333; font-size: 16px;"&gt;. &lt;a href="https://www.interviewjava.com/search/label/JDBC?&amp;amp;max-results=10" target="_blank"&gt;JDBC fundamentals&lt;/a&gt; and its practical usage must be known.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: #333333; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #333333; font-size: 16px;"&gt;The idea is to leverage multiple skills from a single individual for efficiency(cost, time, quality) and get work done on lean principles.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: #333333; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;It in not necessary that full stack developer skills should be the ultimate goal of one's tech journey rather attaining multiple skills with fair level of competency and flexibility in breadth of jobs and roles available.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoHmBHn2Z679kC1azfD94YknGaPT2IkZIO-Bgygc-vuHLgag4kt1zSenkHB7f1-uDKHcEUrtRvtS4nkNjUcwfjO0B49YkOcflTWs_F5GGL2XW5OZnNXBbpCg6I7MHJHRLJ39DuCIZNYby-/s1600/fsd.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="564" data-original-width="658" height="274" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoHmBHn2Z679kC1azfD94YknGaPT2IkZIO-Bgygc-vuHLgag4kt1zSenkHB7f1-uDKHcEUrtRvtS4nkNjUcwfjO0B49YkOcflTWs_F5GGL2XW5OZnNXBbpCg6I7MHJHRLJ39DuCIZNYby-/s320/fsd.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2019/12/what-does-it-take-to-be-fullstack-java.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoHmBHn2Z679kC1azfD94YknGaPT2IkZIO-Bgygc-vuHLgag4kt1zSenkHB7f1-uDKHcEUrtRvtS4nkNjUcwfjO0B49YkOcflTWs_F5GGL2XW5OZnNXBbpCg6I7MHJHRLJ39DuCIZNYby-/s72-c/fsd.JPG" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-502862250270547597</guid><pubDate>Sat, 14 Dec 2019 02:07:00 +0000</pubDate><atom:updated>2019-12-14T20:03:50.093+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Machine Learning</category><category domain="http://www.blogger.com/atom/ns#">Python</category><title>How Machine Learning works with Python?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Machine learning is a subset of Artificial Intelligence wherein a machine is made to learn with a set of data to achieve a specified objective. In this whole process, it is very important the data integrity is kept to the best possible quality level as output of machine is primarily dependent upon that. Machine learning has intersection with Mathematics and Psychology.&amp;nbsp; In programming world there are many languages through which Machine learning objectives can be developed, viz. C, R, Prolog, Java and Python.&lt;br /&gt;
&lt;br /&gt;
Over the years, Python as a programming language has gained lot of popularity due to its high flexibility, simplicity and multi purpose uses.Python contains special libraries for machine learning namely scipy and numpy.&lt;br /&gt;
&lt;br /&gt;
NumPy is a fundamental package for scientific computing with Python. It is a general-purpose array-processing package which provides a high-performance multidimensional array object, and tools for working with these arrays.&lt;br /&gt;
&lt;br /&gt;
The key features contained are:&lt;br /&gt;
&lt;br /&gt;
Useful linear algebra, Fourier transform, and random number capabilities&lt;br /&gt;
&lt;div&gt;
A powerful N-dimensional array object&lt;/div&gt;
Sophisticated (broadcasting) functions&lt;br /&gt;
Tools for integrating C/C++ and Fortran code&lt;br /&gt;
&lt;br /&gt;
These are great for linear algebra and getting to know kernel methods of machine learning. The language is great to use when working with machine learning algorithms and has easy syntax relatively. For beginners, this is the best language to use and to start with.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxV_p1w8HPhvnSLilrmeG52PlrPYiabcNIgDa5LSH9tW8LblqPqRr7qDIkBT1_yD2uhb0i2nsCRlgUq5e2PCDvJSP6Dz2V3fQE2Ft83Bc3KtJcDfyXLfKLBZMNEBKMn4IAExlKiEX2PlGR/s1600/ml.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="351" data-original-width="439" height="255" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxV_p1w8HPhvnSLilrmeG52PlrPYiabcNIgDa5LSH9tW8LblqPqRr7qDIkBT1_yD2uhb0i2nsCRlgUq5e2PCDvJSP6Dz2V3fQE2Ft83Bc3KtJcDfyXLfKLBZMNEBKMn4IAExlKiEX2PlGR/s320/ml.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2019/12/how-machine-learning-works-with-python.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxV_p1w8HPhvnSLilrmeG52PlrPYiabcNIgDa5LSH9tW8LblqPqRr7qDIkBT1_yD2uhb0i2nsCRlgUq5e2PCDvJSP6Dz2V3fQE2Ft83Bc3KtJcDfyXLfKLBZMNEBKMn4IAExlKiEX2PlGR/s72-c/ml.JPG" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-5858383065562425234</guid><pubDate>Sun, 15 Sep 2019 06:38:00 +0000</pubDate><atom:updated>2019-09-15T12:09:05.255+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">DevOps</category><title>Why DevOps?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
&lt;div&gt;
Top five reasons that come to my mind, why one should adopt for DevOps&lt;/div&gt;
&lt;ol style="text-align: left;"&gt;
&lt;li&gt;Faster response to resolve an issue in production affecting customers' businesses as a one team (for development and operations silos perspective)&lt;/li&gt;
&lt;li&gt;Cost effective way to build softwares with better quality by eliminating waste in the system consistently&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Better quality and frequency of communications cross-functionally&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Building competencies effectively across the teams to bridge silos-working. It is a continual process&lt;/li&gt;
&lt;li&gt;Value to customer, faster and with quality outcomes&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
Do you think there are more critical ones, please highlight in comments. Additionally if you want more detailing on any of the above points, shout out, shall try elaborating that.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj99qm8-LWGAdMH5-6kVhA0FnDPpT3ci6B45vS0xRlmrsFg4Wrk0YORKzAjp17wJ9ze8mvzLErgiPG1qbToxpG9udi15wNTjnKnHzxj0w2YTz7QuCEiAQ2MqCG9FsVWHRlTKvS2NSYLXFDv/s1600/WhyDevOps.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="113" data-original-width="356" height="101" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj99qm8-LWGAdMH5-6kVhA0FnDPpT3ci6B45vS0xRlmrsFg4Wrk0YORKzAjp17wJ9ze8mvzLErgiPG1qbToxpG9udi15wNTjnKnHzxj0w2YTz7QuCEiAQ2MqCG9FsVWHRlTKvS2NSYLXFDv/s320/WhyDevOps.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2019/09/why-devops.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj99qm8-LWGAdMH5-6kVhA0FnDPpT3ci6B45vS0xRlmrsFg4Wrk0YORKzAjp17wJ9ze8mvzLErgiPG1qbToxpG9udi15wNTjnKnHzxj0w2YTz7QuCEiAQ2MqCG9FsVWHRlTKvS2NSYLXFDv/s72-c/WhyDevOps.JPG" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-6359562865450484511</guid><pubDate>Sun, 15 Sep 2019 06:12:00 +0000</pubDate><atom:updated>2019-12-30T13:05:41.665+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">BigData</category><category domain="http://www.blogger.com/atom/ns#">Hadoop</category><title>What is Apache Hadoop framework and its usage?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: inherit;"&gt;Apache Hadoop is an open source platform which provides data processing of distributed, large and scalable datasets in a reliable manner using simple programming models. It is built upon clusters of computers hence does data processing in a cost effective fashion. The data can be structured, semi structured or completely unstructured. These features make Apache Hadoop an ideal candidate for making large data lakes supporting big data analytics.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: inherit;"&gt;Apache Hadoop framework is consisted of the following modules:&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: inherit;"&gt;a. Hadoop Common – it contains libraries and utilities needed by other Hadoop modules&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;b. Hadoop Distributed File System (HDFS) – it is a distributed file-system that stores data on commodity machines, providing very high aggregate bandwidth across the cluster;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;c. Hadoop YARN – it is a platform responsible for managing computing resources in clusters and using them for scheduling users' applications&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;d. Hadoop MapReduce – it is an implementation of the MapReduce programming model for large-scale data processing.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: inherit;"&gt;The intent of this framework is to distribute large chunks of data in different computers that are part of cluster and also handle any hardware failures in an automated fashion.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: inherit;"&gt;From Hadoop's usage/usecases perspective, it has an ability to provide an access to real time large datasets for making data driven decisions&lt;/span&gt;&amp;nbsp;for your data scientist, line of business (LOB) owners and developers. Hadoop is helping in data science growth which combines machine learning, statistics, advanced analysis and programming.&lt;span style="font-family: inherit;"&gt;&amp;nbsp; Hadoop o&lt;/span&gt;ptimizes and streamlines costs in enterprise data warehouse by moving “cold” data not currently in use to a Hadoop-based distribution.&amp;nbsp;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5vzIT6z32E6GoRl7EyvwRsGm3AptVOwYw4MoRnyNeepYDt-MYas65tQ1KPIuHsGv4tVpuwPeANBmDl8NetAu8ldkUdDCA3r7OOref9YubMDJRqIQp13SYHpZvqe3HSfxY82SATNr_2jMF/s1600/hadoop.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="512" data-original-width="683" height="149" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5vzIT6z32E6GoRl7EyvwRsGm3AptVOwYw4MoRnyNeepYDt-MYas65tQ1KPIuHsGv4tVpuwPeANBmDl8NetAu8ldkUdDCA3r7OOref9YubMDJRqIQp13SYHpZvqe3HSfxY82SATNr_2jMF/s200/hadoop.png" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2019/09/what-is-apache-hadoop-framework-and-its.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5vzIT6z32E6GoRl7EyvwRsGm3AptVOwYw4MoRnyNeepYDt-MYas65tQ1KPIuHsGv4tVpuwPeANBmDl8NetAu8ldkUdDCA3r7OOref9YubMDJRqIQp13SYHpZvqe3HSfxY82SATNr_2jMF/s72-c/hadoop.png" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-3122047723798316430</guid><pubDate>Fri, 19 Apr 2019 15:25:00 +0000</pubDate><atom:updated>2019-04-19T21:02:53.400+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">BigData</category><title>What is Big Data Analytics?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Big Data, as the name suggests, refers to large and complex data sets which may be unstructured,&amp;nbsp; semi structured or structured which are quite challenging to deal with&amp;nbsp;traditional data-processing application software. These traditional database application software will not be able to capture, extract, analyze and process within tolerable time limits. In Big data, the main focus is on unstructured data and constantly changing data size from few dozen terabytes to many exabytes of data.&lt;br /&gt;
&lt;br /&gt;
Big Data requires specific set of technologies and analytical methods to transform/make sense("value") out of such a high &lt;b&gt;volume&lt;/b&gt;, high frequency of updated data(&lt;b&gt;velocity&lt;/b&gt;) in various formats/&lt;b&gt;variety&lt;/b&gt;(viz. numeric, textual or images/videos) having essential data quality(&lt;b&gt;veracity&lt;/b&gt;). The objective is to derive some meaningful information from large data sets using advance tools/technologies.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGuuNKGUaIxG7DZ06MVLqd8zXDJgefrL_1stRa7HLmwwu8LLNbfgNGEQTptKFEPLAufmCpTcDC8NJiJunRZdb5F8f3i6RI9Xs9ufN6EeTRPrdpmtVQzqexSqitT12cShkqBWBUUANMS_RP/s1600/BigData.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="228" data-original-width="322" height="226" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGuuNKGUaIxG7DZ06MVLqd8zXDJgefrL_1stRa7HLmwwu8LLNbfgNGEQTptKFEPLAufmCpTcDC8NJiJunRZdb5F8f3i6RI9Xs9ufN6EeTRPrdpmtVQzqexSqitT12cShkqBWBUUANMS_RP/s320/BigData.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2019/04/what-is-big-data-analytics.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGuuNKGUaIxG7DZ06MVLqd8zXDJgefrL_1stRa7HLmwwu8LLNbfgNGEQTptKFEPLAufmCpTcDC8NJiJunRZdb5F8f3i6RI9Xs9ufN6EeTRPrdpmtVQzqexSqitT12cShkqBWBUUANMS_RP/s72-c/BigData.JPG" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-7820448925042070082</guid><pubDate>Sat, 01 Dec 2018 01:34:00 +0000</pubDate><atom:updated>2018-12-06T13:25:48.138+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Python</category><title>Short Q&amp;A for Python - II</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Q1. What are four main types of namespaces in Python?&lt;br /&gt;
A: The four main types of namespaces in Python are defined as below:&lt;br /&gt;
&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;
&lt;li&gt;Global,&lt;/li&gt;
&lt;li&gt;Local,&lt;/li&gt;
&lt;li&gt;Module and&lt;/li&gt;
&lt;li&gt;Class namespaces.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div&gt;
Q2. Explain the difference between local and global namespaces.&lt;br /&gt;
A: The local namespaces are created within a function, whenever that function is called. Global name spaces are created when the program starts.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Q3. While defining a class, what does the __ init_O function do?&lt;/div&gt;
A:__ init_O function overrides any initialization from an inherited class, and is called when the class is instantiated.&lt;br /&gt;
&lt;br /&gt;
Q4. What is a lambda operator?&lt;br /&gt;
A: A lambda operator is used to create anonymous functions and mostly used in cases where one wishes to pass functions as parameters. or assign them to variable names.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Q5. How does a function return values?&lt;br /&gt;
A: Functions return values using the return statement.&lt;br /&gt;
&lt;br /&gt;
Q6. When would you use triple quotes as a delimiter?&lt;br /&gt;
A:Triple quotes ‘’”” or ‘“ are string delimiters that span multiple lines in Python. Triple quotes are usually used when spanning multiple lines, or enclosing a string that has a mix of single and double quotes contained therein.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Q7. What happens when a function doesn’t have a return statement? Is this valid?&lt;br /&gt;
A: Yes, it is valid. The function will return a None object. The end of a function is defined by a block of code being executed not by any explicit keyword.&lt;br /&gt;
&lt;br /&gt;
Q8. Explain the use of break and continue in Python looping.&lt;br /&gt;
A: The break statement stops the execution of the current loop. and transfers control to the next block. The continue statement ends the current block’s execution and jumps to the next iteration of the loop.&lt;br /&gt;
&lt;br /&gt;
Q9. When do you use a continue statement in a for loop?&lt;br /&gt;
A: The intent of continue statement is, “I’m done processing this specific item, move on to the next item.” So the moment when processing of a particular item is complete; in order to move on to next, without executing further processing in the block.&lt;br /&gt;
&lt;br /&gt;
Q10. When do you use a break statement in a for loop?&lt;br /&gt;
A: Whenever in a loop, the purpose of looping is served, break statement is used. For example. after finding an item in a list searched for, there is no need to keep looping. The moment the break statement is encountered, moving on to the next block of code takes place.&lt;br /&gt;
&lt;br /&gt;
Q11. How do you use GUI that comes with Python to test your code?&lt;br /&gt;
A:That is just an editor and a graphical version of the interactive shell.There is no automated testing.&lt;br /&gt;
&lt;br /&gt;
Q12. Why is that none of my threads are not running? How can I make it work?&lt;br /&gt;
A: The moment main thread exits, all threads are killed. When main thread runs too quickly, gives threads no time to do any work.&lt;br /&gt;
A simple fix is to add a sleep to the end of the program that’s long enough for all the threads to finish.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil6Nd2wZHUcJ1q1uHobs_l-VaQXir9fqIyYNJpIQ3M02nZ-V3gdY5tSLaCLUcF1UZFjtJ1N7feh0oOF5V6CUK9m8OQXZr_69Hxjr1tBc0cJtjuPix2H-MSgimbAOETpUM0rCaim215y38k/s1600/python.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="200" data-original-width="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil6Nd2wZHUcJ1q1uHobs_l-VaQXir9fqIyYNJpIQ3M02nZ-V3gdY5tSLaCLUcF1UZFjtJ1N7feh0oOF5V6CUK9m8OQXZr_69Hxjr1tBc0cJtjuPix2H-MSgimbAOETpUM0rCaim215y38k/s1600/python.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2018/11/short-q-for-python-ii.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil6Nd2wZHUcJ1q1uHobs_l-VaQXir9fqIyYNJpIQ3M02nZ-V3gdY5tSLaCLUcF1UZFjtJ1N7feh0oOF5V6CUK9m8OQXZr_69Hxjr1tBc0cJtjuPix2H-MSgimbAOETpUM0rCaim215y38k/s72-c/python.png" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-2990648695678760165</guid><pubDate>Tue, 20 Nov 2018 10:27:00 +0000</pubDate><atom:updated>2018-11-21T20:28:16.354+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Python</category><title>Short questions and answers on Python - I</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
In 1991, Guido van Rossum released first edition of Python programming language which is a high level programming language that got popular gradually for many mission critical projects ever since its inception. Python has a dynamic type system and automatic memory management. It is supported within different operating systems through its interpreters. It supports multiple programming paradigms, including object-oriented, imperative, functional and procedural.&lt;br /&gt;
&lt;br /&gt;
In this post and more such posts(shall keep list of questions to 10 per post so that readability is eased out), I tried compiling questions which have short answers attached to them in world of Python programming language. I hope Python enthusiasts shall find these interesting and in case you have any feedback or more questions to post, please let me know in comments section.&lt;br /&gt;
&lt;br /&gt;
Q1. What are the key features of Python and what are the differences between Python and Java?&lt;br /&gt;
A: Key features of Python are listed as given below:&lt;br /&gt;
a.&amp;nbsp; It supports multiple programming paradigms, including object-oriented, aspect-oriented, imperative, functional and procedural.&lt;br /&gt;
b. Uses dynamic typing and a combination of reference counting and a cycle-detecting garbage collector for memory management.&lt;br /&gt;
c. Python is designed to be highly extensible&lt;br /&gt;
d.&amp;nbsp;A simpler, less-cluttered grammar. There is only one way and its philosophy says "&lt;span style="background-color: white; color: #222222; font-family: sans-serif; font-size: 14px;"&gt;there should be one—and preferably only one—obvious way to do it&lt;/span&gt;"&lt;br /&gt;
e. Interpreted language which has different OS dependent interpreters.&lt;br /&gt;
f. Open source technology&lt;br /&gt;
g. Large standard library&lt;br /&gt;
h. GUI can be developed using Python&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Differences with Java:&lt;/u&gt;&lt;br /&gt;
a. Python is dynamically typed while Java is statically typed. In Java, it is imperative to declare objects explicitly and if one tries to assign them a wrong type then a typecasting error is thrown. In case of Python, an object can be of any type and can be assigned to any type dynamically.&lt;br /&gt;
&lt;br /&gt;
b. Python is crisp and brief in expression while Java is verbose. It means same quanta of work will require more lines of codes in Java as compared to Python.&lt;br /&gt;
&lt;br /&gt;
c. Python is easy to read as compared to Java&lt;br /&gt;
&lt;br /&gt;
d. When it comes to speed Java is faster. As Python is interpreted, so it runs slower than its' counterparts.&lt;br /&gt;
&lt;br /&gt;
e.&amp;nbsp; From portability perspective, Java edges over Python as JVM is widely present.&lt;br /&gt;
&lt;br /&gt;
f. In enterprise level critical data intensive applications, Java provides more robustness when it comes to handling database related operations than Python.&lt;br /&gt;
&lt;br /&gt;
Both languages have their own benefits. It all boils down to what you choose for your project. Python is simple and concise whereas Java is fast and more portable. Python is dynamically-typed while Java is statically-typed.Both are powerful in their own areas, what is your decision while selecting them, is driven by your need and wish.&lt;br /&gt;
&lt;br /&gt;
Q2. How is Python executed?&lt;br /&gt;
A:&amp;nbsp;The execution of a Python program results in execution of the byte code on the Python Virtual Machine (PVM). Every time a Python script is executed, script converts into byte code. When a Python script is imported as a module, the byte code will be stored in the corresponding .pyc file which would need PVM for its execution.&lt;br /&gt;
&lt;br /&gt;
Q3. What is the difference between .py and .pyc files?&lt;br /&gt;
A: When a Python module is loaded,&amp;nbsp;the .py file is "byte compiled" to .pyc files. This is done to load module faster rather run faster. The timestamp is recorded in pyc files.&lt;br /&gt;
&lt;br /&gt;
Q4. How do you invoke the Python interpreter for interactive use?&lt;br /&gt;
A: Python has two basic modes: script and interactive. In normal mode, the scripted and finished .py files are run in the Python interpreter.&lt;br /&gt;
&lt;br /&gt;
Interactive mode is a command line shell which gives immediate feedback for each statement, while running previously fed statements in active memory. Interactive mode is a good way to play around and try variations on syntax.&lt;br /&gt;
&lt;br /&gt;
Q5. How do you execute a Python Script?&lt;br /&gt;
A: You can simply call from command prompt:&lt;br /&gt;
&lt;br /&gt;
python &lt;complete filename="" path="" to=""&gt;/filename.py&lt;/complete&gt;&lt;br /&gt;
&lt;br /&gt;
Please make sure python runtime is included in system PATH variable.&lt;br /&gt;
&lt;br /&gt;
Q6. Explain the use of try: except raise, and finally:&lt;br /&gt;
A: In Python programs, exception handling is done through try, except, raise and finally statements. In try block of code, that snippet is written which is expected to throw an exception or error&amp;nbsp;and the code that handles exception is written in except clause. The exceptions are raised when corresponding errors occur at run time, but we can forcefully raise it using the keyword raise. Every try statement in Python may have an optional finally clause which is executed no matter what, and is generally used to release external resources.&lt;br /&gt;
&lt;br /&gt;
Q7. What happens if an error occurs that is not handled in the except block?&lt;br /&gt;
A: If an error happening in try block is not handled in except block, such a code may create problems in production environment(in severe mishandling situations, may crash production system too if error creates memory intensive leakages) since it is not properly tackled what to do when a certain error happens.&lt;br /&gt;
&lt;br /&gt;
Q8. How are modules used in a Python program?&lt;br /&gt;
A: A module in Python is a file containing Python code. It can define functions, classes and variables. One can import module by using keyword called "import". Python has many standard, pre defined modules too which can be utilized as per need.&lt;br /&gt;
&lt;br /&gt;
Q9. How do you create a Python function?&lt;br /&gt;
A: Keyword "def" marks the start of function header.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;def function_name(parameters):&lt;/i&gt;&lt;/div&gt;
&lt;i&gt;&lt;span style="white-space: pre;"&gt; &lt;/span&gt;"""string to define what function does"""&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="white-space: pre;"&gt; &lt;/span&gt;statement(s)&lt;/i&gt;&lt;br /&gt;
One can call the function by just simply invoking it by name.&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;function_name(parameters)&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Q10. How is a Python class created and how is it instantiated?&lt;br /&gt;
A: In python a class is created by the keyword 'class' while object is created using the constructor of the class. This object will then be called the instance of the class. In Python we create classes in the following manner.&lt;br /&gt;
&lt;br /&gt;
class ClassName:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;statement-1&gt;&lt;/statement-1&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; .&lt;br /&gt;
&amp;nbsp; &amp;nbsp; .&lt;br /&gt;
&amp;nbsp; &amp;nbsp; .&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;statement-n&gt;&lt;/statement-n&gt;&lt;br /&gt;
Instance of the class can be invoked something similar to given below:&lt;br /&gt;
&lt;br /&gt;
instance = ClassName(arguments)&lt;br /&gt;
&lt;br /&gt;
More questions on Python shall be posted in subsequent posts so keep checking this blog in near future.&lt;br /&gt;
&lt;br /&gt;
Please share your comments or queries, if you have any.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTUI43Z6JZli0v2ioWKtppS3s45r6dEun_gkOH5TOpGSrwjjc4y3Jlf1LAuwSNhksIzF6q3RA795vgELYhO8q3Tn8fSkn3RLOJ7AfOBQUJvpE-fB6xl_gvVb6D5Eyqbm9K8dQnmANByubH/s1600/python.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="200" data-original-width="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTUI43Z6JZli0v2ioWKtppS3s45r6dEun_gkOH5TOpGSrwjjc4y3Jlf1LAuwSNhksIzF6q3RA795vgELYhO8q3Tn8fSkn3RLOJ7AfOBQUJvpE-fB6xl_gvVb6D5Eyqbm9K8dQnmANByubH/s1600/python.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2018/11/short-questions-and-answers-on-python.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTUI43Z6JZli0v2ioWKtppS3s45r6dEun_gkOH5TOpGSrwjjc4y3Jlf1LAuwSNhksIzF6q3RA795vgELYhO8q3Tn8fSkn3RLOJ7AfOBQUJvpE-fB6xl_gvVb6D5Eyqbm9K8dQnmANByubH/s72-c/python.png" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-6824005951060782351</guid><pubDate>Sun, 11 Nov 2018 16:17:00 +0000</pubDate><atom:updated>2018-11-11T21:53:11.983+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">PHP</category><title>Short questions and answers on PHP</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: inherit;"&gt;PHP acronym stands for Hypertext Preprocessor which is an open source scripting language which is suited for web development and embedded in HTML. Its syntax resembles with Perl and C. The recommended versions of PHP are 7.1 and 7.2.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;A very basic PHP sample is given as below:&lt;/span&gt;&lt;br /&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;pre class="programlisting"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhATILalSZR4E6byCgLcqtwf9OvxiY9Ocj8B0VzpkoQB8hG5N6yB4obxOlxWg0YHUv4s3OPD_5zObLDmUL0TzfXqzjQPCmzBDJJs2sdNjBQT5oWSgjEZOShLIM6He5JSoH-MzfehWn5YzOI/s1600/php.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="322" data-original-width="551" height="187" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhATILalSZR4E6byCgLcqtwf9OvxiY9Ocj8B0VzpkoQB8hG5N6yB4obxOlxWg0YHUv4s3OPD_5zObLDmUL0TzfXqzjQPCmzBDJJs2sdNjBQT5oWSgjEZOShLIM6He5JSoH-MzfehWn5YzOI/s320/php.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;Unlike any client side scripting language, PHP is executed at server side, generating HTML sent to client side. It offers many features and very simple to learn.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;Here goes a list of Q&amp;amp;A on PHP:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;Q1: What can PHP do?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;A:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;PHP can be used for:&lt;br /&gt;
a. Server-side scripting for which you may need the PHP parser (CGI or server module), a web server and a web browser.&lt;br /&gt;
b. Command line scripting to run it without any server or browser.&lt;br /&gt;
c. Writing desktop applications wherein some advanced PHP features in client-side applications can be used using PHP-GTK&lt;br /&gt;
d. PHP is used on all major operating systems, e.g. Linux, many Unix variants (including HP-UX, Solaris and OpenBSD), Microsoft Windows, macOS, RISC OS, and probably others&lt;br /&gt;
e. One can output images, PDF files and even Flash movies (using libswf and Ming) generated on the fly, any text, such as XHTML and any other XML file.&lt;br /&gt;
f.&amp;nbsp; It supports a wide range of databases. Using one of the database specific extensions (e.g., for mysql), or using an abstraction layer like PDO, or connect to any database supporting ODBC extension.&lt;br /&gt;
g.&amp;nbsp; PHP supports talking to other services using protocols such as LDAP, IMAP, SNMP, NNTP, POP3, HTTP, COM (on Windows) and countless others. You can also open raw network sockets and interact using any other protocol.&lt;br /&gt;
h. PHP has useful text processing features like Perl compatible regular expressions (PCRE), and many extensions and tools to parse and access XML documents.&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;Q2:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;What’s the difference between the include() and require() functions?&lt;br /&gt;
A: The difference between include and require is when a file being included cannot be found: include will emit a warning ( E_WARNING ) and the script will continue, whereas require will emit a fatal error ( E_COMPILE_ERROR ) and halt the script.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style="background-color: white;"&gt;Q3:&amp;nbsp;&lt;/span&gt;How can we get the IP address of the client?&lt;br /&gt;
&lt;span style="background-color: white;"&gt;A:&amp;nbsp;&lt;/span&gt;In general "$_SERVER['REMOTE_ADDR'];" is used in PHP to determine the IP address of the client.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style="background-color: white;"&gt;&lt;/span&gt;
&lt;span style="background-color: white;"&gt;Q4:&amp;nbsp;&lt;/span&gt;What’s the difference between unset() and unlink()?&lt;br /&gt;
&lt;span style="background-color: white;"&gt;A:&amp;nbsp;&lt;/span&gt;In PHP, &lt;i&gt;unlink()&lt;/i&gt; is a function used for file system handling, primarily used to delete files.&lt;br /&gt;
&lt;i&gt;unset()&lt;/i&gt; is a function for variable management in PHP. It will make a variable undefined/destroyed. unset() is used to null out the value of a given variable. It can be used to remove a single variable, multiple variables, or an element from an array.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style="background-color: white;"&gt;Q5:&amp;nbsp;&lt;/span&gt;What are the main error types in PHP and how do they differ?&lt;br /&gt;
&lt;span style="background-color: white;"&gt;A:&amp;nbsp;&lt;/span&gt;Basically four types of errors in PHP, which are as follows:&lt;br /&gt;
&lt;br /&gt;
a. Parse Error (Syntax Error): Unclosed quotes, Missing or Extra parentheses, Unclosed braces, Missing semicolon&lt;br /&gt;
&lt;br /&gt;
b. Fatal Error: When asking PHP to do something which it is not designed to do e.g. try accessing undefined functions&lt;br /&gt;
&lt;br /&gt;
c, Warning Error: It won't stop execution of a PHP script e.g. warning errors are to include a missing file or using the incorrect number of parameters in a function&lt;br /&gt;
&lt;br /&gt;
d. Notice Error: Similar to warning errors, such as to include a missing file or using the incorrect number of parameters in a function&lt;br /&gt;
&lt;ul style="color: #333333; font-family: q_serif, Georgia, Times, &amp;quot;Times New Roman&amp;quot;, &amp;quot;Hiragino Kaku Gothic Pro&amp;quot;, Meiryo, serif; font-size: 16px; list-style-image: initial; list-style-position: initial; margin: 0px 2em 1em 0px; padding: 0px;"&gt;
&lt;/ul&gt;
&lt;span style="background-color: white;"&gt;&lt;/span&gt;
&lt;span style="background-color: white;"&gt;Q6:&amp;nbsp;&lt;/span&gt;How can you enable error reporting in PHP?&lt;br /&gt;
A. There are two ways for viewing PHP errors.&lt;br /&gt;
1. display errors directly on your website (viewable from any web browser)&lt;br /&gt;
2. enable error logging to write the errors to a specified file (viewable inside a text file)&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;/span&gt;
&lt;span style="background-color: white;"&gt;Q7:&amp;nbsp;&lt;/span&gt;What’s the difference between using mysql_ functions and PDO?&lt;br /&gt;
&lt;span style="background-color: white;"&gt;A: mysql is deprecated function in PHP which provides an access to MySQL through a procedural way while PDO(PHP Data Object) is a general database abstraction layer with support for MySQL. PDO provides prepared statements and lot of flexibility while returning data.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: white;"&gt;Q8:&amp;nbsp;&lt;/span&gt;Describe how inheritance works with PHP.&lt;br /&gt;
&lt;span style="background-color: white;"&gt;A:&amp;nbsp;PHP uses inheritance principle in its object model.When one class extends another, the subclass inherits all of the public and protected methods from the parent class. They will retain their original functionality unless a class overrides those methods in parent class. PHP supports single inheritance and multi-level inheritance only.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="background-color: white;"&gt;Q9:&amp;nbsp;&lt;/span&gt;Do you know what the PHP-FIG is? Describe it.&lt;br /&gt;
&lt;span style="background-color: white;"&gt;A: FIG stands for&amp;nbsp;Framework Interoperability Group. The purpose of same is to increase collaboration among different stakeholders of projects with commonalities.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;

&lt;span style="background-color: white;"&gt;Q10:&amp;nbsp;&lt;/span&gt;What are different PHP frameworks and their preferences of use?&lt;br /&gt;
A: The objective of PHP Frameworks is to provide a tool for building PHP based applications with agility. It helps in facilitating scalability and better control on maintenance. Some examples of PHP frameworks to help you build interoperable, agile applications are:&lt;br /&gt;
Symfony, CakePHP, Phalcon, Aura, Laravel, Fat-Free, Kohana&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="background-color: white;"&gt;Q11:&amp;nbsp;&lt;/span&gt;What are Traits?&lt;br /&gt;
&lt;span style="background-color: white;"&gt;A:&amp;nbsp;Traits is a mechanism for code reuse in single inheritance languages like PHP. It reduces limitations of single inheritance by enabling a developer to reuse sets of methods freely in several independent classes living in different class hierarchies.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: white;"&gt;Q12:&amp;nbsp;&lt;/span&gt;Can the value of a constant change during the script’s execution?&lt;br /&gt;
&lt;span style="background-color: white;"&gt;A: No, it cannot change during the execution of script.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="background-color: white;"&gt;Q13:&amp;nbsp;&lt;/span&gt;Can you extend a Final defined class?&lt;br /&gt;
&lt;span style="background-color: white;"&gt;A: No. If a class is defined as Final, it cannot be extended. If a method is defined as final then it cannot be overridden in derived classes.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="background-color: white;"&gt;Q14:&amp;nbsp;&lt;/span&gt;What are the __construct() and __destruct() methods in a PHP class?&lt;br /&gt;
&lt;span style="background-color: white;"&gt;A: Constructor an Destructor, like any other OOP language, in PHP5 can be defined using _construct() and _destruct() methods explicitly.&amp;nbsp;Classes which have a constructor method call this method on each newly-created object.The destructor method is called as soon as there are no other references to a particular object.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="background-color: white;"&gt;Q15:&amp;nbsp;&lt;/span&gt;How we can get the number of elements in an array?&lt;br /&gt;
A:&amp;nbsp;Use the PHP count() or sizeof() function&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="background-color: white;"&gt;Q16:&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: transparent;"&gt;What are the 3 scope levels available in PHP and how would you define them?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;A: private: accessible within the class itself, public:accessible outside of the class, protected: accessible in parent and child classes&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="background-color: white;"&gt;Q17:&amp;nbsp;&lt;/span&gt;What are getters and setters and why are they important?&lt;br /&gt;
&lt;span style="background-color: white;"&gt;A: These are methods to declare and retrieve variable values. They play important role since they provide a central mechanism for a variable definition and retrieval.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="background-color: white;"&gt;Q18:&amp;nbsp;&lt;/span&gt;What does MVC stand for and what does each component do?&lt;br /&gt;
&lt;span style="background-color: white;"&gt;A: Model View Controller: an application design pattern which separates data logic layer(model), presentation layer(view) and business logic layer(controller) from each other. It provides a segregation of responsibility for better code maintenance.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="background-color: white;"&gt;Q19:&amp;nbsp;&lt;/span&gt;What are SQL Injections, how do you prevent them and what are the best practices?&lt;br /&gt;
&lt;span style="background-color: white;"&gt;A: SQL Injections are nefarious ways to modify database queries on the fly in such a way that it will make a database vulnerable to external threats. In order to prevent SQL Injection, one can use prepared statements and parameterized queries. In PHP, PDO(independent of underlying database) and MySQLi(specifically for MySQL).&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;

&lt;span style="background-color: white;"&gt;Q20:&amp;nbsp;&lt;/span&gt;Why would you use === instead of ==?&lt;br /&gt;
&lt;span style="background-color: white;"&gt;A: The detailed answer of same can be obtained in &lt;a href="http://php.net/manual/en/language.operators.comparison.php#language.operators.comparison"&gt;PHP Manual&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;

&lt;span style="background-color: white;"&gt;Q21:&amp;nbsp;&lt;/span&gt;What are PSRs ? Why would you follow a PSR standard?&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;/span&gt;&lt;/span&gt;A: PSR stands for PHP Standard Recommendations,&amp;nbsp;a PHP specification published by the PHP Framework Interop Group(PHP-FIG) similar to Java Specification Request(JSR) in case of Java. The objectives of PSRs are:&lt;br /&gt;
a. To serve the standardization of programming concepts in PHP&lt;br /&gt;
b. To enable interoperability of components&lt;br /&gt;
c. To provide a common technical basis for implementation of proven concepts for optimal programming and testing practices.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2018/11/short-questions-and-answers-on-php.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhATILalSZR4E6byCgLcqtwf9OvxiY9Ocj8B0VzpkoQB8hG5N6yB4obxOlxWg0YHUv4s3OPD_5zObLDmUL0TzfXqzjQPCmzBDJJs2sdNjBQT5oWSgjEZOShLIM6He5JSoH-MzfehWn5YzOI/s72-c/php.JPG" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-1507885974644579753</guid><pubDate>Mon, 29 Oct 2018 03:11:00 +0000</pubDate><atom:updated>2018-10-29T08:41:02.664+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Agile</category><category domain="http://www.blogger.com/atom/ns#">SCRUM</category><title>What are your key learnings while working in Scrum team?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
In Scrum ways of working, it's always important to stay ahead of your game but when things go out of your control owing to the reasons you cannot do much about in such scenarios reorganizing your work as a team comes as a natural choice. Mostly things which did not go your way make you learn the most. In this post I'm writing down some general and most of the common learnings during scrum executions:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;
&lt;li&gt;Don't work on fragile requirements as seen quite often, in immatured setup, customer keeps changing business requirements even when stories are in QA which results in rework and hence delays and frustrations within team. Start work once requirements are frozen and detailed enough. Any changes to once baselined business requirements must be dealt with a change request in subsequent sprints so as proper estimates can be arrived at.&lt;/li&gt;
&lt;li&gt;Avoid too many Dev and QA reloops which results in waste of efforts. Both Dev and QA must have same understanding of requirements so that stories once in QA don't deviate from business requirements expectations which are established during requirements grooming stage. Integrate QA steps within sprints post Dev is done with their set of unit, function and regression testings with desired objectives. More rigorous and proactive testing mean better would be quality of shipped product.&lt;/li&gt;
&lt;li&gt;Do all Scrum ceremonies without fail with the best industrial practices. Daily scrum meetings with Kanban boards, not more than 15 minutes. Respect of time by everyone is very important.&lt;/li&gt;
&lt;li&gt;Daily updates into ALM tools must be religiously adhered, to get a grip on burndown happening as planned or not. The corrective measures can only be taken when data is correct and timely.&lt;/li&gt;
&lt;li&gt;Scrum team members must have a right mindset towards ethos of Scrum. Every team goes through a process of forming, storming, norming and performing so building a solid team spirit stimulates productivity which happens through colocation and continuous communication. If teams are geographically distributed, relevant tools and business practices must be used to build effective collaboration.Do it with agility. Be critical to work at hand rather to people.&lt;/li&gt;
&lt;li&gt;Scrum Master must quicken the turnaround time of blocker resolution which hampers team velocity. A timely decision must be arrived on stories that cannot be delivered due to blockers and communication must follow to relevant stakeholders.&lt;/li&gt;
&lt;li&gt;Apply learnings observed during retrsperetros meetings in subsequent sprints with tangible goals explicitly defined. The repeat of certain steps if required must be made available to team through visual reminders readily accessible to them.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
In case you have more learnings to add through your experiences, please share in comments on this post.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZoSkIhV20EcxlqK_YEOzkK-CDEuFKi0Y_Gx_zVeyoevsQ3DciwFfDIZK9JEKZHU1WFDwWiVn0LYFl55hzWS-12-DA1sE9T3tuk-NMIawzU9DrPdYuoAc8WFW07I3pfxKkTNhTkxLohjpE/s1600/images.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="300" data-original-width="400" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZoSkIhV20EcxlqK_YEOzkK-CDEuFKi0Y_Gx_zVeyoevsQ3DciwFfDIZK9JEKZHU1WFDwWiVn0LYFl55hzWS-12-DA1sE9T3tuk-NMIawzU9DrPdYuoAc8WFW07I3pfxKkTNhTkxLohjpE/s320/images.jpeg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2018/10/what-are-your-key-learnings-while.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZoSkIhV20EcxlqK_YEOzkK-CDEuFKi0Y_Gx_zVeyoevsQ3DciwFfDIZK9JEKZHU1WFDwWiVn0LYFl55hzWS-12-DA1sE9T3tuk-NMIawzU9DrPdYuoAc8WFW07I3pfxKkTNhTkxLohjpE/s72-c/images.jpeg" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-933884682482378764</guid><pubDate>Sun, 28 Oct 2018 06:50:00 +0000</pubDate><atom:updated>2018-10-28T12:21:01.972+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Cloud Computing</category><title>Short Q&amp;A for Cloud computing</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
As cloud computing has matured over the years, business potential of same has become quite mainstream. During its inception years, data privacy protection was a major concern for most of the giant corporates who weren't willing to move their data in someone else's environment but gradually models of cloud transformation evolved and momentum has now become a necessity to cut down costs of ownership.&lt;br /&gt;
I wrote about a short and crisp introduction on what cloud computing is and why does one need it in one of my earlier posts:&lt;br /&gt;
&lt;div&gt;
&lt;a href="http://www.interviewjava.com/2015/12/what-is-cloud-computing.html" target="_blank"&gt;What is cloud computing?&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
Now in this post, I shall be focusing on putting more short questions and answers that are frequently asked during preliminary phases of interview process. Hope you find them useful:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Q1:&amp;nbsp;What is Infrastructure As A Service (IaaS)? Give some examples.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;A: &lt;/b&gt;IaaS is one specific category of cloud service which provides instant virtualized computing resources(Servers and storage that are hosted in data center physical plant/building made accessible through networking firewalls/security) over the internet.One can quickly scale up and pay as per use of service. The cloud computing service provider manages the infrastructure. Different example of IaaS are&amp;nbsp;Amazon Web Services (AWS), Microsoft Azure, Google Compute Engine (GCE),Cisco Metapod,Linode, Rackspace, DigitalOcean etc.&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;b&gt;Q2:&amp;nbsp;What is Platform As A Service (PaaS) and what are layers of PaaS? Give some examples.&lt;/b&gt;&lt;br /&gt;&lt;div&gt;
&lt;b&gt;A: &lt;/b&gt;PaaS is one specific category of cloud service which provides a platform(OS+Development tools over infrastructure(data-centers consisting of&amp;nbsp; physical servers, network and security etc.)) which are available for a price over their web browsers for end users. Different examples of PaaS are&amp;nbsp;AWS Elastic Beanstalk, Windows Azure, Heroku, Force.com, Google App Engine, Apache Stratos, OpenShift etc.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Q3:&amp;nbsp;What is Software As A Service (SaaS)? Give some examples.&lt;/b&gt;&lt;br /&gt;&lt;b&gt;A: &lt;/b&gt;SaaS is one specific category of cloud service which provides&amp;nbsp;software distribution model of third-party provided applications made accessible to customers over the Internet. SaaS runs on top of PaaS and IaaS combined. Different examples of SaaS are Google apps(Drive, Docs etc.), Dropbox, Cisco WebEx etc.&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;Q4:&amp;nbsp;What are key differences in IaaS, PaaS and SaaS?&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;A:&amp;nbsp; &lt;/b&gt;The summary of key differences(self explanatory) in IaaS, PaaS and SaaS can be summarized in table given below:&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZG2VkScD3TLDopjt9VgjwJxg9m7xc_YuXs5egQRxF_6hwRHpA2GQyuyRbzAKZgup2_7IrAdYAUMZtHmxK-cPmotnNpF-ruVV3aICvH6NJeanDY7PNoiwiiVvTCS9KneiHRAIIG5ytwIhN/s1600/SaaSIaaSPaaS.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="665" data-original-width="954" height="223" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZG2VkScD3TLDopjt9VgjwJxg9m7xc_YuXs5egQRxF_6hwRHpA2GQyuyRbzAKZgup2_7IrAdYAUMZtHmxK-cPmotnNpF-ruVV3aICvH6NJeanDY7PNoiwiiVvTCS9KneiHRAIIG5ytwIhN/s320/SaaSIaaSPaaS.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Q5:&amp;nbsp;&lt;/b&gt;What are the basic characteristics of cloud computing?&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;A: &lt;/b&gt;There are following basic characteristics of cloud computing:&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a. &lt;u&gt;On-demand self-service&lt;/u&gt;: An end user can provision computing service automatically without requiring human interaction with each service provider.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b. &lt;u&gt;Broad network access&lt;/u&gt;:&amp;nbsp;services are available over the network and accessed through heterogeneous thin or thick client platforms (e.g., mobile phones, tablets, laptops, and workstations)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c. &lt;u&gt;Resource pooling&lt;/u&gt;:&amp;nbsp;Multiple consumers using a multi-tenant model can be serviced in provider’s pooled environment dynamically. A consumer remains oblivious of exact location of the provided resources but may be able to specify location at a higher level of abstraction (e.g., country, state, or datacenter).Different resources include storage, processing, memory, and network bandwidth with different physical and virtual resources dynamically assigned and reassigned with demand.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d. &lt;u&gt;Rapid elasticity&lt;/u&gt;: Scale up/down rapidly and in specific cases automatically.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e. &lt;u&gt;Measured Service&lt;/u&gt;:&amp;nbsp;Automatic control and optimize resources by leveraging a metering capability at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency for both the provider and consumer of the utilized service.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;Q6:&amp;nbsp;&lt;/b&gt;What are the must essentials to be followed before going to cloud computing platform?&lt;br /&gt;&lt;div style="text-align: left;"&gt;
&lt;b&gt;A:&lt;/b&gt; Essentials are&lt;b&gt;:&lt;/b&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;
&lt;li&gt;Compliance issues&lt;/li&gt;
&lt;li&gt;Data storage types&lt;/li&gt;
&lt;li&gt;Data integrity adherence in the cloud&lt;/li&gt;
&lt;li&gt;Ensuring availability and access&lt;/li&gt;
&lt;li&gt;Protection from loss of data&lt;/li&gt;
&lt;li&gt;Business continuity plan&lt;/li&gt;
&lt;li&gt;Uptime – reduction of downtime&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;Q7:&amp;nbsp;&lt;/b&gt;What are different layers in cloud architecture?&lt;br /&gt;&lt;div&gt;
&lt;b&gt;A: &lt;/b&gt;A cloud computing architecture is consisted of following components:&lt;/div&gt;
&lt;div&gt;
&lt;ul style="text-align: left;"&gt;
&lt;li&gt;Front end: Fat client, thin client, mobile device&lt;/li&gt;
&lt;li&gt;Back end: Servers, Storages&lt;/li&gt;
&lt;li&gt;Cloud based delivery(IaaS, PaaS, SaaS)&lt;/li&gt;
&lt;li&gt;Network(Intranet, internet, inter-cloud) and Security&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Q8:&amp;nbsp;&lt;/b&gt;What are the types of data used in cloud computing?&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;A:&amp;nbsp;&lt;/b&gt;Emails, images, videos, contracts, blogs etc.&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;Q9:&lt;/b&gt;How can our company benefit from cloud computing?&lt;br /&gt;&lt;div&gt;
&lt;b&gt;A:&amp;nbsp; &lt;/b&gt;The key cloud computing benefits are:&lt;/div&gt;
&lt;div&gt;
&lt;ul style="text-align: left;"&gt;
&lt;li&gt;Cost savings/Reduced OpEx&lt;/li&gt;
&lt;li&gt;Pay per use&lt;/li&gt;
&lt;li&gt;User defined security model for cloud computing(Private, Hybrid, Public clouds)&lt;/li&gt;
&lt;li&gt;Efforts and focus saved for more strategic initiatives of growth&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;Q10: &lt;/b&gt;How you can you best secure data while transporting in the cloud?&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;A:&amp;nbsp; &lt;/b&gt;A strong&amp;nbsp;data&lt;b&gt;&amp;nbsp;&lt;/b&gt;encryption technique is a way before moving data across networks to storage servers/devices to eliminate chances of data leaks.&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;Q11:&amp;nbsp;&lt;/b&gt;Explain the Security management in terms of Cloud Computing.&lt;br /&gt;&lt;div&gt;
&lt;b&gt;A:&amp;nbsp; &lt;/b&gt;There are two key pillars of security management of cloud computing:&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;Identity management: Identify and manage personnels' data who can access authorized cloud based services. Define rules for authentication for these authorized personnels.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
Access management: Roles based access definition and management towards cloud based services&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;Q12:&amp;nbsp;&lt;/b&gt;What is the difference between scalability and elasticity in cloud computing?&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;A: &lt;/b&gt;The&lt;b&gt;&amp;nbsp;&lt;/b&gt;scalability corresponds to growth seen in service capacity due to scale picked up by business demand while elasticity corresponds to flexiblity in system to commission or decommission resources capacity automatically/dynamically.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;Q13:&amp;nbsp;&lt;/b&gt;What are hybrid clouds?&lt;br /&gt;&lt;div&gt;
&lt;b&gt;A:&amp;nbsp;&lt;/b&gt; A combination of public and private clouds is called hybrid cloud. It gives flexibility to organizations to decide what features or services they want to secure over others and take them to private cloud vs. rest to be put on public cloud.&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;Q14:&amp;nbsp;&lt;/b&gt;What is the difference between cloud computing and mobile computing?&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;A:&amp;nbsp; &lt;/b&gt;Mobile computing inherently uses cloud computing and depends on it for data migration.&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2018/10/short-q-for-cloud-computing.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZG2VkScD3TLDopjt9VgjwJxg9m7xc_YuXs5egQRxF_6hwRHpA2GQyuyRbzAKZgup2_7IrAdYAUMZtHmxK-cPmotnNpF-ruVV3aICvH6NJeanDY7PNoiwiiVvTCS9KneiHRAIIG5ytwIhN/s72-c/SaaSIaaSPaaS.JPG" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-6532222726579501951</guid><pubDate>Fri, 26 Oct 2018 11:41:00 +0000</pubDate><atom:updated>2018-10-27T06:56:20.004+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">DevOps</category><category domain="http://www.blogger.com/atom/ns#">DevOpsTools</category><title>What are different DevOps tools?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
In journey of implementing DevOps culture in your work environment, it is quite an important step what kind of DevOps tools that you and your team pick. It is important to understand technical needs of your project may be it requires a petabyte-scale, data analytics infrastructure or specific architecture and processes drivers during development and operation phases. A great care must be done while selecting, benchmarking and constantly improving tool selection.&lt;br /&gt;
&lt;br /&gt;
If you are a company that is building a solution on top of an open-source stack (ELK), teams have to get involved in the open source community, contributing to multiple projects while customizing tools to fit needs. DevOps tools can be classified in various categories based upon their specific features/usage during software development lifecycle management. The ones which are quite widely used in IT industry are enumerated as given below :&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;a. Build and Continuous Integration tools&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Jenkins&lt;/b&gt;&lt;br /&gt;
First released in 2011, &lt;a href="https://jenkins.io/" target="_blank"&gt;Jenkins&lt;/a&gt; is the leading open source automation server, which provides hundreds of plugins to support building, deploying and automating any projec. According to its own marketing, “can be used as a simple CI server or turned into the continuous delivery hub for any project”.&amp;nbsp; E.g. Pipeline plugin means customers can implement their project’s entire build/test/deploy pipeline in a Jenkinsfile and store it alongside the code. It helps in continuous delivery and speeding deployment.There are other tools as well like Solano Labs and Gradle.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;b.Infrastructure Performance and Monitoring tools&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Nagios&lt;/b&gt;&lt;br /&gt;
There are many infrastructure monitoring solutions e.g. Zabbix,Nagios and many others open-source tools but &lt;a href="https://www.nagios.org/" target="_blank"&gt;Nagios&lt;/a&gt; is a stand out monitoring solution that is highly effective owing to its large community of contributors who create plugins for the tool. Nagios may not include all the abilities that are desired around the automatic discovery of new instances and services, so working these issues around with the community’s plugins help a great deal.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;c.Version control tools&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Github&lt;/b&gt;&lt;br /&gt;
If you have an excellent repository of source code&amp;nbsp; then it will accelerate DevOps projects. &lt;a href="https://github.com/" target="_blank"&gt;Github &lt;/a&gt;is one with its effective search navigation and collaborative structure that provides a space for software developers to host their code online for free. It functions as a social site, where questions can be asked and code exchanges made. Github has a handy list of DevOps tools with one-line descriptions to help developers choose a relevant software. Each suggestion is colour-coded to indicate which language it is written in, saving search time.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;d. Enterprise Container Platform&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Docker&lt;/b&gt;&lt;br /&gt;
&lt;a href="https://www.docker.com/" target="_blank"&gt;Docker&lt;/a&gt;, launched in 2013, is a popular enterprise&amp;nbsp; platform provider, operating on Windows or Linux and compatible with any programming language. The toolkit will separate software, wrapping it in a file-system which facilitates automated deployments. It makes easier to host applications inside portable environments. Docker automates operating-system-level virtualization – and it’s integration-friendly, cooperating with IBM Cloud, AWS, Oracle Cloud, Azure and more. It is a powerful tool that promises to assist in transition to DevOps. It helps implementing the velocity, variation and visualization of systems thinking and amplifying feedback loops. It has a built-in container orchestration which uses clustering.It provides convenient integration with third-party systems with open APIs, plugins and drivers.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;e.Software Configuration management tools&lt;/b&gt;&lt;br /&gt;
Software configuration management(SCM) is the task of tracking and controlling changes in the software. When something goes wrong then SCM can help determine what was changed and by whom. SCM practices include revision control and the establishment of baselines.&lt;br /&gt;
&lt;br /&gt;
The SCM tools in recent times have become virtual appliances that can be instantiated as virtual machines.The tools can model and manage cloud-based virtual resources, including virtual appliances, storage units, and software bundles. Now developers are able to dynamically instantiate virtual servers and related resources.&lt;br /&gt;
&lt;b&gt;Chef&lt;/b&gt;&lt;br /&gt;
&lt;a href="https://www.chef.io/chef/" target="_blank"&gt;Chef&lt;/a&gt; is a configuration automation tool which is quite popular in DevOps communities.As the environments managed grow, manual configuration and deployment practices can result in growing operational expenses at an alarming rate. With Chef, the infrastructure is defined as code, ensuring that configuration policy is flexible, versionable, testable and human readable. Servers managed by Chef are continuously evaluated against their desired state, ensuring that configuration drift is automatically corrected, and configuration changes are universally applied.&lt;br /&gt;
&lt;b&gt;Ansible&lt;/b&gt;&lt;br /&gt;
&lt;a href="https://www.ansible.com/use-cases/configuration-management" target="_blank"&gt;Ansible&lt;/a&gt; is on of the simplest solution for configuration management available. It's designed to be minimal in nature, consistent, secure and highly reliable, with an extremely low learning curve for administrators, developers and IT managers.&lt;br /&gt;
Ansible configurations are simple data descriptions your infrastructure which are both human-readable and machine-parsable - ensuring everyone on team will be able to understand the meaning of each configuration task.It frees people of configuration management related tasks botheration and free their time for more strategic works. Ansible requires a password or SSH key in order to start managing systems. It can start managing them without installing any agent software, avoiding the problem of "managing the management" common in many automation systems.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;

&lt;b&gt;f.Incident, change and problem management tools&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Jira&lt;/b&gt;&lt;br /&gt;
&lt;a href="https://www.atlassian.com/software/jira?&amp;amp;aceid=&amp;amp;adposition=1t1&amp;amp;adgroup=56999824060&amp;amp;campaign=1439934701&amp;amp;creative=301752063780&amp;amp;device=c&amp;amp;keyword=jira&amp;amp;matchtype=e&amp;amp;network=g&amp;amp;placement=&amp;amp;ds_kids=p34164036275&amp;amp;ds_e=GOOGLE&amp;amp;ds_eid=700000001558501&amp;amp;ds_e1=GOOGLE&amp;amp;gclid=CjwKCAjw9sreBRBAEiwARroYmzy38ojewJVswRVvpEgosfSiUnmrMtzzx_D2wEI061OwKDApUY5N1RoCTvoQAvD_BwE&amp;amp;gclsrc=aw.ds" target="_blank"&gt;Jira&lt;/a&gt; is was primarily an issue tracking software which helps DevOps team organized when it comes to dealing with issues. These days &lt;a href="https://www.atlassian.com/software/jira/features" target="_blank"&gt;Atlassian&lt;/a&gt; has come up with plethora of Jira products meant for DevOps teams:&lt;br /&gt;
&lt;br /&gt;
&lt;ul style="text-align: left;"&gt;
&lt;li&gt;&lt;a href="https://www.atlassian.com/software/jira" target="_blank"&gt;Jira Software for Project and issue tracking&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.atlassian.com/software/jira/service-desk" target="_blank"&gt;Jira Service desk for IT service desk and customer service&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.atlassian.com/software/jira/ops" target="_blank"&gt;JiraOps for Modern incident management&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.atlassian.com/software/jira/core" target="_blank"&gt;JiraCore for essential business management&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5B19tLKlwITorHtUoHdjfaPMmgVVKq7fNTS3MTtIqkbB-h8EDT7xoaZI2gL2-KkjRCiuzjMH7Bl4KX2tIUih4v3degnQ39i79JNR_mVntDWXHRPblhRQKXOvG9kCpdUW26e7KH9i0_BtJ/s1600/DevOps-Tools.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="398" data-original-width="643" height="198" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5B19tLKlwITorHtUoHdjfaPMmgVVKq7fNTS3MTtIqkbB-h8EDT7xoaZI2gL2-KkjRCiuzjMH7Bl4KX2tIUih4v3degnQ39i79JNR_mVntDWXHRPblhRQKXOvG9kCpdUW26e7KH9i0_BtJ/s320/DevOps-Tools.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2018/10/what-are-different-devops-tools.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5B19tLKlwITorHtUoHdjfaPMmgVVKq7fNTS3MTtIqkbB-h8EDT7xoaZI2gL2-KkjRCiuzjMH7Bl4KX2tIUih4v3degnQ39i79JNR_mVntDWXHRPblhRQKXOvG9kCpdUW26e7KH9i0_BtJ/s72-c/DevOps-Tools.jpg" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-2947226626047202335</guid><pubDate>Wed, 24 Oct 2018 03:15:00 +0000</pubDate><atom:updated>2018-10-26T17:18:46.647+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">DevOps</category><title>What is DevOps?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
DevOps is a software development philosophy or a paradigm shift where development team and operation team break silos, collaborate better in order to ship a product or service to market in a very quick time. The main objective of DevOps is to shorten the lifecycle of development. As the name itself suggests it is a compound word coined by joining two words development and operation together.&lt;br /&gt;
&lt;br /&gt;
Now question arises why DevOps? Weren't things functioning good enough before? The actual struggle arises when operation team, which is primarily responsible for a very high uptime of production environment, face sscaling of production environment. It brings challenges to operation guy with limitations of available tools efficiency to manage production environment better. They usually resist frequent changes to production to upkeep a stable environment for end customers and expect a development schedule in advance from development team so that they can manage changes better. If development team and operation team don't work in cohesion then it affects overall system effectiveness, efficiency and time to market of product/service.&lt;br /&gt;
&lt;br /&gt;
DevOps propounds a change in mindset with new set of tools and skills. Both entities(Dev and Ops teams) must work together to obtain common goal - customer delight by breaking silos, thinking alike, proactive executions of duties and shared responsibilities to reach enhanced productivity.&lt;br /&gt;
&lt;br /&gt;
DevOps promotes culture of automation in infrastructure, code, testing, workflows for continuous improvement in entire delivery lifecycle. The monitoring and measuring of system performance is also automated. The development of new features happen in chunks. It may span mostly once in 3 weeks or 4 weeks or may be days and hours based upon how much matured/robust overall ecosystem is for code deployments in production.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEJB822wpwRi4huIXU3YmhUlKqL-EzuT2AFG32L_fFviyACQrF14nZcM9PFqESB4H8art7GMiQLkm1LO4PIbWYLFAwWiGaCS1vQOkG3K-UytVAMH7zlPHmDimHPkOzrh8Pt5Ci5X-JkMts/s1600/DevOps.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="680" data-original-width="1200" height="181" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEJB822wpwRi4huIXU3YmhUlKqL-EzuT2AFG32L_fFviyACQrF14nZcM9PFqESB4H8art7GMiQLkm1LO4PIbWYLFAwWiGaCS1vQOkG3K-UytVAMH7zlPHmDimHPkOzrh8Pt5Ci5X-JkMts/s320/DevOps.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2018/10/what-is-devops.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEJB822wpwRi4huIXU3YmhUlKqL-EzuT2AFG32L_fFviyACQrF14nZcM9PFqESB4H8art7GMiQLkm1LO4PIbWYLFAwWiGaCS1vQOkG3K-UytVAMH7zlPHmDimHPkOzrh8Pt5Ci5X-JkMts/s72-c/DevOps.png" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-4293820327089020948</guid><pubDate>Tue, 23 Oct 2018 14:44:00 +0000</pubDate><atom:updated>2018-10-27T06:31:50.253+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Agile</category><category domain="http://www.blogger.com/atom/ns#">Kanban</category><title>What is Kanban?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Kanban means signboard or billboard in Japanese. It is a scheduling system which is for lean manufacturing and just-in-time manufacturing (JIT). The father of Kanban is Taiichi Ohno, an industrial engineer at Toyota. He developed Kanban to improve manufacturing efficiency. It is also known as "Toyota nameplate system"&lt;br /&gt;
&lt;br /&gt;
A goal of the kanban system is to limit the buildup of excess inventory at any point in production. Kanban helps in limiting the number of items waiting at supply points and then removing inefficiencies.&lt;br /&gt;
&lt;br /&gt;
Kanban is used as one of the agile methodology for software development. Some key attributes are listed as given below:&lt;br /&gt;
&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;
&lt;li&gt;Real time communication of capacity&lt;/li&gt;
&lt;li&gt;Absolute transparency among teams&lt;/li&gt;
&lt;li&gt;Building Kanban scheduling board as visually available tools for team, helping in better collaboration with transparency&lt;/li&gt;
&lt;li&gt;Work in Progress (WIP) limits are set which define amount of work that can exist in each workflow.&lt;/li&gt;
&lt;li&gt;Kanban canbe visualized with Jira software for efficient project development tasks definition, WIP limits help reducing overloading resources.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivnnRyybszXbAQLLl641K43GxT7U9VKsELuNxsZxFut7fYuS4Bt1mnfjkup3HRJ2GsNPhtEyFA6H835YnZX4prb3kDFEf1MUwVAxUUn9D1YTN07HhMDeB0y4ZZ6gojeE5OIv3BGAAcCNIl/s1600/Kanban.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="488" data-original-width="695" height="224" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivnnRyybszXbAQLLl641K43GxT7U9VKsELuNxsZxFut7fYuS4Bt1mnfjkup3HRJ2GsNPhtEyFA6H835YnZX4prb3kDFEf1MUwVAxUUn9D1YTN07HhMDeB0y4ZZ6gojeE5OIv3BGAAcCNIl/s320/Kanban.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2018/10/what-is-kanban.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivnnRyybszXbAQLLl641K43GxT7U9VKsELuNxsZxFut7fYuS4Bt1mnfjkup3HRJ2GsNPhtEyFA6H835YnZX4prb3kDFEf1MUwVAxUUn9D1YTN07HhMDeB0y4ZZ6gojeE5OIv3BGAAcCNIl/s72-c/Kanban.jpg" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-4221535284097021080</guid><pubDate>Sat, 20 Oct 2018 12:37:00 +0000</pubDate><atom:updated>2018-10-23T20:21:57.828+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Agile</category><category domain="http://www.blogger.com/atom/ns#">Lean</category><title>What is lean?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Lean is both a philosophy and discipline which focuses primarily on continuous improvement in process of providing value to customer. Before it was known as a business methodology it was more known in manufacturing world introduced by research team of Toyota deriving maximum possible value for end customer while reducing the waste of resources involved. The organized way of lean derive maximum customer value by:&lt;br /&gt;
&lt;br /&gt;
-&amp;nbsp; Eliminate waste(also known as Muda)&lt;br /&gt;
-&amp;nbsp; Eliminate waste due to overburden/workload is too high(also known as Muri)&lt;br /&gt;
&lt;br /&gt;
The continuous improvement(CI) is achieved with thorough examination of existing processes and a continuous search in process steps which are not adding any value to end customer. The people part is equally very important since process and people are intertwined and nothing concrete will come out from end customer perspective unless both work in absolute tandem continuously. Hence collaborative efforts to remove waste continuously is key to overall performance improvement. It aims for paradigm shift in overall organizational culture.&lt;br /&gt;
&lt;br /&gt;
There are 8 types of wastes:&lt;br /&gt;
&lt;ul style="text-align: left;"&gt;
&lt;li&gt;Defects&lt;/li&gt;
&lt;li&gt;Over-Production&lt;/li&gt;
&lt;li&gt;Waiting&lt;/li&gt;
&lt;li&gt;Non-Utilized Talent&lt;/li&gt;
&lt;li&gt;Transportation&lt;/li&gt;
&lt;li&gt;Inventory&lt;/li&gt;
&lt;li&gt;Motion&lt;/li&gt;
&lt;li&gt;Extra-Processing&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
In world of softwares more than 50% of functionality are rarely or never used. On an average 45% of projects exceed budget, 7% runs over schedule and 56% delivers less value than expected.60%–90% of ideas do not improve the metric they were intended to improve. Imbibing lean principles with conscious efforts lead to value creation with a committed and self motivated teams.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg61RHtwpAGgkH4U3X2qSXLXEc0intqi53BGfXYUyKgBj1Bv1ncXGisj8FvjxxF0-9C55h5SAUVq1NcBqgQ-Up9hMEuaxC-9GkCNzHjXIN1KeKiXoj4KGumkJ87acUQGhCgq2F0q6Lzt7Fo/s1600/coreJava.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="390" data-original-width="537" height="232" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg61RHtwpAGgkH4U3X2qSXLXEc0intqi53BGfXYUyKgBj1Bv1ncXGisj8FvjxxF0-9C55h5SAUVq1NcBqgQ-Up9hMEuaxC-9GkCNzHjXIN1KeKiXoj4KGumkJ87acUQGhCgq2F0q6Lzt7Fo/s320/coreJava.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2018/10/what-is-lean.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg61RHtwpAGgkH4U3X2qSXLXEc0intqi53BGfXYUyKgBj1Bv1ncXGisj8FvjxxF0-9C55h5SAUVq1NcBqgQ-Up9hMEuaxC-9GkCNzHjXIN1KeKiXoj4KGumkJ87acUQGhCgq2F0q6Lzt7Fo/s72-c/coreJava.jpg" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-4772468706790811653</guid><pubDate>Thu, 27 Sep 2018 06:18:00 +0000</pubDate><atom:updated>2018-10-23T20:23:14.527+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Agile</category><category domain="http://www.blogger.com/atom/ns#">Extreme Programming</category><category domain="http://www.blogger.com/atom/ns#">XP</category><title>What is Extreme Programming(XP)?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr"&gt;
Extreme Programming (XP) is one of the agile methodologies which is focused on improving responsiveness to business requirement changes and software quality. It focuses on "releases" in short development cycles, improving productivity.&lt;br /&gt;
XP promotes pair programming focusing on extensive code reviews and unit testing. A flat management structure is another feature to cut down on bureaucracy for faster and efficient working. The basic idea is to take all relevant development steps to extreme level in order to improve overall quality of delivery whether it's development in pair, unit testing, automation of system test cases and their executions, test driven development. Acceptance testing is done and results are published and if bugs are found then test cases are written first surrounding bugs, essentially bugs are nothing but missed test cases.&lt;br /&gt;
XP only works on small teams of twelve or fewer people. This limitation can be overcome by breaking up project into smaller pieces and the team into smaller groups.&lt;br /&gt;
It promotes continuous design and release concept and can run efficiently and successfully with extremely commited senior technical worfkorce.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwEK1ccA6N4OQWUA8GiS-u_Y69n1TW39N1DkfVtZXsHYyRCn1jb0ubqd7DhYsNlYmwfZuuqlmavk6kdvS5_GTvy4KRKdzjJVJjRNnfrvcBv75-Rq1bgmIjpPYUYeZYeUGZmQ2I4DMBCRe7/s1600/XP.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="337" data-original-width="366" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwEK1ccA6N4OQWUA8GiS-u_Y69n1TW39N1DkfVtZXsHYyRCn1jb0ubqd7DhYsNlYmwfZuuqlmavk6kdvS5_GTvy4KRKdzjJVJjRNnfrvcBv75-Rq1bgmIjpPYUYeZYeUGZmQ2I4DMBCRe7/s1600/XP.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2018/09/what-is-extreme-programmingxp.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwEK1ccA6N4OQWUA8GiS-u_Y69n1TW39N1DkfVtZXsHYyRCn1jb0ubqd7DhYsNlYmwfZuuqlmavk6kdvS5_GTvy4KRKdzjJVJjRNnfrvcBv75-Rq1bgmIjpPYUYeZYeUGZmQ2I4DMBCRe7/s72-c/XP.png" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-5640529576544443738</guid><pubDate>Fri, 06 Apr 2018 09:04:00 +0000</pubDate><atom:updated>2018-10-23T20:22:41.531+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Agile</category><category domain="http://www.blogger.com/atom/ns#">SCRUM</category><title>What is SCRUM? </title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
SCRUM is an agile methodology/framework for software development. A SCRUM team is usually consisted of 3 to 9 developers who breaks down their work into timeboxed, usually called sprints of 2 to 3 weeks, user stories. The development is done in an iterative fashion in order to provide realized value/working product to end user in quick time.&lt;br /&gt;
&lt;br /&gt;
There are typically three roles in SCRUM teams:&lt;br /&gt;
&lt;br /&gt;
1. Product Owner(PO): Represents voice of customer and accountable that SCRUM team delivers value to the business. A product owner defines business requirements of a product in a breakdown fashion called a user story and collections of such user stories is called product backlog. These user stories are elaborated enough so that development team can start work on them during sprint execution. These user stories can be prioritized in a sprint during a sprint planning session. The product owner spends most of his time with business liaising with business stakeholders so that he bridges the gap from business functionalities perspective to development team. Product owner is a key communicator to business community whenever sprint review meetings are conducted with desired outcomes and also helps business stakeholders to understand the outcome of a sprint in case they are not able to make it to these meetings. A product owner also educates business on development process and challenges on their side. A product owner should not be taking any work of SCRUM Master who is primarily responsible for helping product owner in maintaining the product backlog in such a way that team can be continually working towards achieving business goals.&lt;br /&gt;
&lt;br /&gt;
2. Development Team: Primarily responsible for development of shippable product incrementally. A team of 3 to 9 who is responsible for analysis, design, coding, unit testing, system and integration testing, building and deploying incremental shippable product. It is a self-organizing and mature setup of delivery team members who adhere to ethos of SCRUM methodology.&lt;br /&gt;
&lt;br /&gt;
3.&amp;nbsp; SCRUM Master(SM): SM is a facilitator. The primary job to remove any kind of blockers/impediments at the earliest so as development team works seamlessly to deliver shippable product incrementally. SM is not to be confused with a Project Manager or a typical team lead. SM is responsible for:&lt;br /&gt;
- Helping/Coaching development team to stick to SCRUM ethos and values&lt;br /&gt;
- Helps team to self organize, defining the definition of DONE for user stories&lt;br /&gt;
- Helps PO so as product backlog is loaded with user stories that are detailed enough to be developed when sprint is in execution.&lt;br /&gt;
- Eliminating blockers/impediments(internal/external)&lt;br /&gt;
- SCRUM ceremonies execution(Sprint Planning, Daily SCRUM, Product/Sprint Review Meeting, Retrospective and tracking actions thereof)


&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg61RHtwpAGgkH4U3X2qSXLXEc0intqi53BGfXYUyKgBj1Bv1ncXGisj8FvjxxF0-9C55h5SAUVq1NcBqgQ-Up9hMEuaxC-9GkCNzHjXIN1KeKiXoj4KGumkJ87acUQGhCgq2F0q6Lzt7Fo/s1600/coreJava.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="390" data-original-width="537" height="232" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg61RHtwpAGgkH4U3X2qSXLXEc0intqi53BGfXYUyKgBj1Bv1ncXGisj8FvjxxF0-9C55h5SAUVq1NcBqgQ-Up9hMEuaxC-9GkCNzHjXIN1KeKiXoj4KGumkJ87acUQGhCgq2F0q6Lzt7Fo/s320/coreJava.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2018/04/what-is-scrum.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg61RHtwpAGgkH4U3X2qSXLXEc0intqi53BGfXYUyKgBj1Bv1ncXGisj8FvjxxF0-9C55h5SAUVq1NcBqgQ-Up9hMEuaxC-9GkCNzHjXIN1KeKiXoj4KGumkJ87acUQGhCgq2F0q6Lzt7Fo/s72-c/coreJava.jpg" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-8179073243054121444</guid><pubDate>Wed, 03 Jan 2018 16:38:00 +0000</pubDate><atom:updated>2019-12-27T23:31:12.256+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Core Java</category><title>Core Java Interview Questions</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://2.bp.blogspot.com/-gU34o7jx_ew/WpBOXiCfzBI/AAAAAAAAcfo/DWi6de0q2lssCsOarH4laFs-tbMQqpnWgCLcBGAs/s1600/coreJava.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;/div&gt;
Every year many thousand technocrats choose &lt;b&gt;Java careers&lt;/b&gt; across the globe,after formally taking &lt;b&gt;Java training classes,courses &lt;/b&gt;and/or &lt;b&gt;Java certifications&lt;/b&gt; like &lt;b&gt;OCJP &lt;/b&gt;etc.While appearing for &lt;b&gt;technical interviews&lt;/b&gt;,these budding &lt;b&gt;Java programmers&lt;/b&gt; face variety of technical questions, are asked to write code snippets to prove their mettle in relevant topics of Java.They are not only assessed on language basics but also on their familiarity with Java development tools, &lt;b&gt;&lt;a href="http://www.interviewjava.com/search/label/Java%20Coding%20Standards"&gt;coding standards and guidelines&lt;/a&gt;,optimization&lt;/b&gt; of &lt;b&gt;Java code,load tests&lt;/b&gt;,securing code through &lt;a href="http://www.interviewjava.com/2008/05/what-is-obfuscation-how-this-technique.html"&gt;&lt;b&gt;Java obfuscation&lt;/b&gt;&lt;/a&gt; and many more. It is their performance in these interviews which decides their career fate and is highly dependent on to-the-point and not too verbose answers.&lt;br /&gt;
&lt;br /&gt;
Apart from technical questions, an interviewee faces a spate of personal questions as well.In post, &lt;a href="http://www.interviewjava.com/2007/05/personal-questions-in-interview.html"&gt;Personal Interview Questions&lt;/a&gt; you will find variety of questions asked on personal front.In wired world, it is very important to know where your &lt;a href="https://www.interviewjava.com/2009/09/ebooks-on-java-javaee-technologies.html"&gt;resources&lt;/a&gt; are lying and how credible are they.&lt;br /&gt;
&lt;br /&gt;
This blog intends to provide a consolidated knowledge base for all netizens,budding Java Engineers or experienced ones, interested in Java technology.This blog will primarily focus on 'Core Java' related questions and later on advanced topics in Java EE space,Open source technologies and frameworks and more.At this point this is a nice idea to put a roadmap right away to put all these questions in an organized fashion. In order to access questions list on a particular topic,please click the links associated with it.It will open the questions list in the same browser window and in order to comeback to this page, while going through various posts, you have to click back button in your bowser window.Each answer for a question on various topics will open in a fresh window,while you are through with reading an answer,close the open window in order to comeback to the questions list.If you want to access &lt;b&gt;Master List of Core Java Interview Questions&lt;/b&gt; then &lt;a href="http://www.interviewjava.com/2007/06/master-list-of-core-java-questions.html"&gt;&lt;b&gt;click here&lt;/b&gt;&lt;/a&gt;.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Java Language Fundamentals (Click Link To Access Questions' List)&lt;/b&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="http://www.interviewjava.com/2007/04/java-and-object-oriented-analysis-and.html"&gt;Object Oriented Analysis and Design Basics, UML And Java&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.interviewjava.com/2007/04/inside-java-virtual-machine.html"&gt;Inside JVM&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.interviewjava.com/2007/04/java-fundamentalsdatatypeskeywordsopera.html"&gt;Datatypes,Keywords,Operators and Assignments,Identifies etc.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.interviewjava.com/2007/04/questions-on-declarations-and.html"&gt;Declarations and Modifiers,Conversion,Casting and Promotion &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.interviewjava.com/2007/04/flow-control.html"&gt;Flow control&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.interviewjava.com/2007/05/questions-on-assertions.html"&gt;Assertions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.interviewjava.com/2007/04/garbage-collection.html"&gt;Exception Handling and Garbage Collection&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.interviewjava.com/2007/04/objects-and-classes.html"&gt;Objects and Classes&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;strong&gt;Packages and their classes (Click Link To Access Questions' List)&lt;/strong&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="http://www.interviewjava.com/2007/04/javalang-package.html"&gt;java.lang.*&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.interviewjava.com/2007/05/questions-on-javautil-and-javaio.html"&gt;java.util.*&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.interviewjava.com/2007/05/questions-on-javautil-and-javaio.html"&gt;java.io.*&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.interviewjava.com/2007/05/questions-on-awt-and-jfc-swing.html"&gt;java.awt.*&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.interviewjava.com/2007/06/interview-questions-on-javanet.html"&gt;java.net.*&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;a href="http://www.interviewjava.com/2007/05/questions-on-java-database-connectivity.html"&gt;&lt;strong&gt;Java and Database Access&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.interviewjava.com/2007/05/questions-on-awt-and-jfc-swing.html"&gt;&lt;strong&gt;JFC Swing&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.interviewjava.com/2009/08/collection-apis-related-interview.html"&gt;Collection APIs&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Check more miscellaneous short questions on Core Java with short answers,&lt;a href="http://www.interviewjava.com/2007/05/miscellaneous-core-java-questions-with.html"&gt;here.&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If you starve for more knowledge on Core Java,you may like to check out online &lt;a href="http://www.interviewjava.com/2009/09/ebooks-on-java-javaee-technologies.html"&gt;e-books and other resources on Core Java or access all Online Java and Java EE resources&lt;/a&gt;. All suggestions,comments are welcome in order to make this space more productive and useful for all its audiences.&lt;br /&gt;
&lt;br /&gt;
Read more on Core Java:&lt;br /&gt;
- &lt;a href="http://www.interviewjava.com/search/label/Core%20Java%20Questions%20With%20Short%20Answers"&gt;Short Questions On Core Java&lt;/a&gt;&lt;br /&gt;
- &lt;a href="http://www.interviewjava.com/search/label/Java%205"&gt;Interview Questions on Java 5&lt;/a&gt;&lt;br /&gt;
- &lt;a href="http://www.interviewjava.com/2012/01/what-are-enhancements-in-java-se-7.html" target="_blank"&gt;Enhancements in Java 7&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCLbDiB7xrA64WQO1Y5X_YrmvgK5MzRz4g88g6DCQSd4V9UC_bhpLKIQ_N44YXGCTpq_LUoXfQpmCWWyiOsW7T8oU7GaXu1wXn1XWfQVunBRbNwktGCQ4PfdjwlIF7q9kKfY1at9Zz-Gdk/s1600/coreJavaIQ.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="390" data-original-width="537" height="232" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCLbDiB7xrA64WQO1Y5X_YrmvgK5MzRz4g88g6DCQSd4V9UC_bhpLKIQ_N44YXGCTpq_LUoXfQpmCWWyiOsW7T8oU7GaXu1wXn1XWfQVunBRbNwktGCQ4PfdjwlIF7q9kKfY1at9Zz-Gdk/s320/coreJavaIQ.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2007/04/test.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCLbDiB7xrA64WQO1Y5X_YrmvgK5MzRz4g88g6DCQSd4V9UC_bhpLKIQ_N44YXGCTpq_LUoXfQpmCWWyiOsW7T8oU7GaXu1wXn1XWfQVunBRbNwktGCQ4PfdjwlIF7q9kKfY1at9Zz-Gdk/s72-c/coreJavaIQ.jpg" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-3192572842021880014</guid><pubDate>Tue, 02 Jan 2018 16:43:00 +0000</pubDate><atom:updated>2018-03-22T13:44:05.874+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Core Java</category><title>Miscellaneous Core Java Questions With Short Answers</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;In a Java program, how can you divert program messages to the system console, but error messages, say to a file?&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A. The class 'System has a variable out that represents the standard output, and the variable err that represents the standard error device. By default, they both point at the system console. This how the standard output could be re-directed:&lt;br /&gt;&lt;pre class="programlisting"&gt;Stream stream = new Stream(new FileOutputStream("error.txt"));
System.setErr(stream);
System.setOut(stream);&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;How do you know if an explicit object casting is needed?&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A. In order to assign a superclass object to a variable of a subclass,one needs to do explicit casting. For example:&lt;br /&gt;&lt;pre class="programlisting"&gt;Person person;
Man man;
man = (Man)person;&lt;/pre&gt;
While automatic casting happens when you typecast a subclass object as parent class object.&lt;/li&gt;
&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt; What's the difference between the methods sleep() and wait() &lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A. The code sleep(1000); puts thread aside for exactly one second. The code wait(1000), causes a wait of up to one second. A thread could stop waiting earlier if it receives the notify() or notifyAll() call. The method wait() is defined in the class Object and the method sleep() is defined in the class Thread.&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;Why would you use a synchronized block vs. synchronized method?&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A. A synchronized blocks place locks for shorter periods than synchronized methods.&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;Can you write a Java class that could be used both as an applet as well as an application?&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A. Yes. Add a main() method to the applet.&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;Can you call one constructor from another if a class has multiple constructors&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A. Yes. Use this() syntax.&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;How will you convert a String array to an ArrayList object?&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A.&lt;pre class="programlisting"&gt;String[] stringArray = new String[] {"x", "y", "Z"};
List list = Arrays.asList(stringArray);&lt;/pre&gt;
&lt;/li&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt; Does it matter in what order catch statements for FileNotFoundException and IOExceptipon are written? &lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A. Yes, it does. The &lt;i&gt;FileNoFoundException &lt;/i&gt; is inherited from the &lt;i&gt;IOException&lt;/i&gt;. Exception's subclasses have to be caught first.&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;Can an inner class declared inside of a method access local variables of this method?&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A. It's possible if these variables are final.&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt; &lt;b&gt;&lt;i&gt;What can go wrong if you replace &amp;amp;&amp;amp; with &amp;amp; in the following code:&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;pre class="programlisting"&gt;String a=null;
if (a!=null &amp;amp;&amp;amp; a.length()&amp;gt;10) {...}&lt;/pre&gt;
&lt;br /&gt;&lt;br /&gt;A. A single ampersand here would lead to a NullPointerException.&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;When should the method invokeLater()be used?&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A. To ensure that Swing components are updated through the event-dispatching thread.&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;What's the difference between a queue and a stack?&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A. Stacks works by last-in-first-out rule (LIFO), while queues use the FIFO rule&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;You can create an abstract class that contains only abstract methods. On the other hand, you can create an interface that declares the same methods. So can you use abstract classes instead of interfaces? &lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A. Sometimes. But your class may be a descendant of another class and in this case the interface is your only option.&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;If you're overriding the method equals() of an object, which other method you might also consider? &lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A.hashCode()&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;You are planning to do an indexed search in a list of objects. Which of the two Java collections should you use: &lt;/i&gt;&lt;/b&gt; &lt;b&gt;&lt;i&gt;ArrayList or LinkedList?&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A. ArrayList&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;How would you make a copy of an entire Java object with its state?&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A. Have this class implement Cloneable interface and call its method clone().&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;How can you minimize the need of garbage collection and make the memory use more effective?&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A. Use object pooling and weak object references.&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;There are two classes: A and B. The class B need to inform a class A when some important event has happened. What Java technique would you use to implement it? &lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A. If these classes are threads then consider &lt;i&gt;notify() &lt;/i&gt;or &lt;i&gt;notifyAll().&lt;/i&gt; For regular classes one can use the &lt;i&gt;   Observer &lt;/i&gt;interface.&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;How will you sort a collection object?&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A. &lt;pre class="programlisting"&gt;  
// Sort
Collections.sort(list);

// Case-insensitive sort
Collections.sort(list, String.CASE_INSENSITIVE_ORDER);

// Reverse-order sort
Collections.sort(list, Collections.reverseOrder  ());

// Case-insensitive reverse-order sort
Collections.sort(list, String.CASE_INSENSITIVE_ORDER);
Collections.reverse(list);&lt;/pre&gt;
&lt;/li&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;In a Java class, one has 10 variables. One wants to serialize only 3 variables,how can this be achieved?&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A.Make variables as 'transient' which are not to be serialized.&lt;/li&gt;
&lt;/span&gt;&lt;/ol&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg61RHtwpAGgkH4U3X2qSXLXEc0intqi53BGfXYUyKgBj1Bv1ncXGisj8FvjxxF0-9C55h5SAUVq1NcBqgQ-Up9hMEuaxC-9GkCNzHjXIN1KeKiXoj4KGumkJ87acUQGhCgq2F0q6Lzt7Fo/s1600/coreJava.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg61RHtwpAGgkH4U3X2qSXLXEc0intqi53BGfXYUyKgBj1Bv1ncXGisj8FvjxxF0-9C55h5SAUVq1NcBqgQ-Up9hMEuaxC-9GkCNzHjXIN1KeKiXoj4KGumkJ87acUQGhCgq2F0q6Lzt7Fo/s320/coreJava.jpg" width="320" height="232" data-original-width="537" data-original-height="390" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2007/05/miscellaneous-core-java-questions-with.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg61RHtwpAGgkH4U3X2qSXLXEc0intqi53BGfXYUyKgBj1Bv1ncXGisj8FvjxxF0-9C55h5SAUVq1NcBqgQ-Up9hMEuaxC-9GkCNzHjXIN1KeKiXoj4KGumkJ87acUQGhCgq2F0q6Lzt7Fo/s72-c/coreJava.jpg" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-22041291364652649</guid><pubDate>Thu, 28 Sep 2017 10:26:00 +0000</pubDate><atom:updated>2018-03-22T16:05:00.663+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Cloud Computing</category><title>What is cloud computing?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Cloud computing is a practice wherein series of servers hosted over internet providing every possible IT solution be it platform, infrastructure, storage, software/application as a service which can be made available or configured as on demand with minimum management efforts for specific period of time of use and one has to pay for service as per usage.&lt;br /&gt;
&lt;br /&gt;
It is a cost effective way of co-utilizing resources which otherwise would be more expensive to obtain and use. Due to economy of scale it further makes cost effective appeal. Now most of top rung organizations are moving their work/business in private/hybrid/public cloud leveraging more time to focus on their core business rather investing resources on computing infrastructure and its maintenance. Amazon, Microsoft, Alibaba Google are major players in this space according to &lt;a href="https://www.gartner.com/newsroom/id/3808563" rel="nofollow" target="_blank"&gt;Gartner&lt;/a&gt;.&lt;br /&gt;

&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg61RHtwpAGgkH4U3X2qSXLXEc0intqi53BGfXYUyKgBj1Bv1ncXGisj8FvjxxF0-9C55h5SAUVq1NcBqgQ-Up9hMEuaxC-9GkCNzHjXIN1KeKiXoj4KGumkJ87acUQGhCgq2F0q6Lzt7Fo/s1600/coreJava.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="390" data-original-width="537" height="232" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg61RHtwpAGgkH4U3X2qSXLXEc0intqi53BGfXYUyKgBj1Bv1ncXGisj8FvjxxF0-9C55h5SAUVq1NcBqgQ-Up9hMEuaxC-9GkCNzHjXIN1KeKiXoj4KGumkJ87acUQGhCgq2F0q6Lzt7Fo/s320/coreJava.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2015/12/what-is-cloud-computing.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg61RHtwpAGgkH4U3X2qSXLXEc0intqi53BGfXYUyKgBj1Bv1ncXGisj8FvjxxF0-9C55h5SAUVq1NcBqgQ-Up9hMEuaxC-9GkCNzHjXIN1KeKiXoj4KGumkJ87acUQGhCgq2F0q6Lzt7Fo/s72-c/coreJava.jpg" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-8350506254634828013</guid><pubDate>Sat, 19 Aug 2017 02:39:00 +0000</pubDate><atom:updated>2020-09-19T08:12:09.476+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Collection APIs</category><category domain="http://www.blogger.com/atom/ns#">Core Java</category><title>Collection APIs Related Interview Questions</title><description>You may like to read following posts before going through the list of questions mentioned on Collections APIs in this post:&lt;ol&gt;&lt;li&gt;&lt;a href="http://www.interviewjava.com/2007/05/questions-on-javautil-and-javaio.html"&gt;Questions on java.util.* and java.io.* package&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.interviewjava.com/2007/05/miscellaneous-core-java-questions-with.html" style="text-decoration: none;"&gt;Core Java Questions With Short Answers&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;Q. How will you synchronize a collection?
A. The code sample given below elaborates on synchronization of various collection objects:
&lt;pre class="programlisting"&gt;import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.SortedMap;
import java.util.SortedSet;
import java.util.TreeMap;
import java.util.TreeSet;


public class CollectionSynchronization {
public static void main(String[] args) {
Collection collection = Collections.synchronizedCollection(new ArrayList());
List list = Collections.synchronizedList(new ArrayList());
Set set = Collections.synchronizedSet(new HashSet());
Map map = Collections.synchronizedMap(new HashMap());
SortedMap sortedMap = Collections.synchronizedSortedMap(new TreeMap());
SortedSet sortedSet = Collections.synchronizedSortedSet(new TreeSet());
}
}
&lt;/pre&gt;Q. Why is it advisable to override hashCode() method as well, when equals() method is overridden?
A. When equals() method is overridden, then each object must have same hashcode for pair of objects which have equals() method overridden.If the .hashCode() method of your custom class doesn't work the same way your .equals() method works, the results of your code will be erroneous.

Q. If a collection object has duplicate values then how will you convert into a collection having unique values?
A.  Here goes the listing:
&lt;pre class="programlisting"&gt;import java.util.ArrayList;
import java.util.Iterator;
import java.util.Set;
import java.util.TreeSet;


public class CollectionExample {
public static void main(String[] args) {
 ArrayList&lt;string&gt; list = new ArrayList&lt;string&gt;();
 list.add("Apple");
 list.add("Apple");
 list.add("Apple");
 list.add("Mango");
 list.add("Guvava");
 list.add("Pineapple");
 Set&lt;string&gt; set = new TreeSet&lt;string&gt;(list);
 Iterator&lt;string&gt; iterator = set.iterator();
   while (iterator.hasNext()) {
  String str= (String)iterator.next();
  System.out.println(""+str);
  }

 

}
}

Output:

Apple
Guvava
Mango
Pineapple
&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/pre&gt;Q. How will you address the scenario given below to decide on collection object to work with:
- Multiple keys with multiple values
- Multiple keys with single value
- Single key with multiple values
- Single key with single value
A. In the given scenario, HashMap will be the best choice. As long as the keys are unique, one can enter multiple values in an ArrayList and associate this with a key inside HashMap and retrieve those multiple values from unique key.

Q.How to get a TreeSet from a TreeMap?
A.The possibility of creating a TreeSet from the keyset of TreeMap.Check the example given as below:
&lt;pre class="programlisting"&gt;import java.util.Iterator;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;


public class CollectionExample {
public static void main(String[] args) {
    TreeMap&lt;string string=""&gt; treeMap = new TreeMap&lt;string string=""&gt;();
    treeMap.put("1", "Apple");
    treeMap.put("2", "Mango");
    treeMap.put("3", "Guvava");
    treeMap.put("4", "Banana");
    treeMap.put("5", "Grapes");

    Set&lt;string&gt; set = new TreeSet&lt;string&gt;(treeMap.keySet());
    Iterator&lt;string&gt; iterator = set.iterator();

    while (iterator.hasNext()) {
        String str = (String) iterator.next();
        System.out.println("" + str);
    }
}
}

Output:
1
2
3
4
5
&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/pre&gt;Q.How a TreeSet different from HashSet?
A.One line answer is : TreeSet contains-&amp;gt; Unique and Ordered/Sorted values(as per natural order or based on Comparator implemented logic).It is backed by TreeMap.

While HashSet contains-&amp;gt; Unique values but not Ordered/Sorted

The example given below will explain the same:
&lt;pre class="programlisting"&gt;import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;


public class CollectionExample {
  public static void main(String[] args) {
      Set&lt;integer&gt; hashSet = new HashSet&lt;integer&gt;();
      Set&lt;integer&gt; treeSet = new TreeSet&lt;integer&gt;();

      addElements(hashSet);
      addElements(treeSet);

      System.out.println("HashSet:"+hashSet);
      System.out.println("TreeSet"+treeSet);
  }

  private static void addElements(Set&lt;integer&gt; aTreeSet) {
      aTreeSet.add(Integer.valueOf(6));
      aTreeSet.add(Integer.valueOf(2));
      aTreeSet.add(Integer.valueOf(2));
      aTreeSet.add(Integer.valueOf(4));
      aTreeSet.add(Integer.valueOf(7));
      aTreeSet.add(Integer.valueOf(7));
      aTreeSet.add(Integer.valueOf(1));
  }
}

The Output is:

HashSet:[2, 4, 6, 1, 7]
TreeSet[1, 2, 4, 6, 7]
&lt;/integer&gt;&lt;/integer&gt;&lt;/integer&gt;&lt;/integer&gt;&lt;/integer&gt;&lt;/pre&gt;Q.A practical problem, I want to choose a collection object which allows me to put only unique values inside it and in the same order as it is coming out of a database, here data from the database can contain duplicate values.What collection object will you choose?
A.Choose:
&lt;pre class="programlisting"&gt;LinkedHashSet&lt;string&gt; uniqueData = new LinkedHashSet&lt;string&gt;(dataFromDB);
&lt;/string&gt;&lt;/string&gt;&lt;/pre&gt;Q. What is the initial capacity of Vector?
A. 10. Try out the code given below:
&lt;pre class="programlisting"&gt;import java.util.Set;
import java.util.Vector;


public class CollectionExample {
   public static void main(String[] args) {
       Vector vector = new Vector();
       int capacity = vector.capacity();
       System.out.println("Capacity:" + capacity);
   }
}

The Output is:

Capacity:10
&lt;/pre&gt;An article on &lt;a href="http://www.javaworld.com/javaworld/jw-11-1998/jw-11-collections.html?page=2"&gt;JavaWorld on Collections' API&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2009/08/collection-apis-related-interview.html</link><author>noreply@blogger.com (Unknown)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7300550709382233175.post-4747186188452860565</guid><pubDate>Sun, 02 Apr 2017 10:00:00 +0000</pubDate><atom:updated>2018-03-20T14:36:59.167+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">JEE</category><title>Java EE,Open Source,Advanced Technologies Interview Questions</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
In continuation of earlier post on &lt;a href="http://www.interviewjava.com/"&gt;Java Interview Questions&lt;/a&gt; this post is focussed on interview questions in several &lt;b&gt;Java EE technologies&lt;/b&gt;(erstwhile &lt;b&gt;J2EE&lt;/b&gt;).Apart from Java EE, interview questions on most widely used open source technologies like Struts,Hibernate,Spring and Velocity and more will also be covered.&lt;br /&gt;
&lt;br /&gt;
On constant requests by readers to put something on personal interview questions, consequently, you may like to read post on &lt;a href="http://www.interviewjava.com/2007/05/personal-questions-in-interview.html"&gt;personal interview questions&lt;/a&gt; , prior talking about Java Enterprise Edition.&lt;br /&gt;
&lt;br /&gt;
Sun Microsystems introduced  Java EE 5 specification under &lt;a class="external text" href="http://jcp.org/en/jsr/detail?id=244" rel="nofollow" title="http://jcp.org/en/jsr/detail?id=244"&gt;JSR 244&lt;/a&gt; and the final release was made public on May ,2006.Java EE has become a cornerstone technology for enterprise level web based solution development.It has more than three million downloads and more than twenty six vendors' application servers support this specification.It is significant to go through an &lt;a href="http://www.interviewjava.com/2007/05/what-is-java-ee-5.html"&gt;introduction of Java EE 5&lt;/a&gt; before jumping to questions list straightaway.You can capture essence of Java EE 5 &lt;a href="http://java.sun.com/javaee/"&gt;here&lt;/a&gt; in detail.&lt;br /&gt;
&lt;br /&gt;
If you directly want to access &lt;b&gt;Master List of Java EE Interview Questions&lt;/b&gt; then &lt;a href="http://www.interviewjava.com/2007/06/master-list-of-java-ee-questionsrelease.html" style="color: rgb(255 , 0 , 0); font-weight: bold;"&gt; click here.&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The list of questions on various topics covered under Java EE hood is as follows(on the basis of different technologies covered under Java EE umbrella) :&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Java EE 5&lt;/i&gt;&lt;i&gt;(Click To Access Questions' List)&lt;/i&gt;&lt;br /&gt;
&lt;a href="http://www.interviewjava.com/2007/04/java-servlets-and-jsps.html"&gt;Java Servlets&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.interviewjava.com/2007/04/interview-questions-on-jsp.html"&gt;Java Server Pages and JSP Standard Tag Libraries&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.interviewjava.com/2007/05/interview-questions-on-enterprise-java.html"&gt;Enterprise Java Beans&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.interviewjava.com/2007/07/interview-questions-on-jms.html"&gt;Java Message Services&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.interviewjava.com/2008/08/what-is-jaxp.html"&gt;Java APIs for XML Parsing&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.interviewjava.com/2009/03/what-are-different-system-contracts-in.html"&gt;Java Connector Architecture&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.interviewjava.com/2008/03/sending-email-to-gmail-smtp-server.html"&gt;Java Mail&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.interviewjava.com/2007/05/interview-questions-on-ejb-transactions.html"&gt;Java Transaction APIs&lt;/a&gt;&lt;br /&gt;
&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;i&gt;Open Source Technologies/Emerging Frameworks:&lt;/i&gt;&lt;br /&gt;&lt;a href="http://www.interviewjava.com/2007/06/interview-questions-on-struts-framework.html"&gt;Struts&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.interviewjava.com/2007/06/interview-questions-on-hibernate.html"&gt;Hibernate Framework&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.interviewjava.com/2007/06/interview-questions-on-spring-framework.html"&gt;Spring Framework&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.interviewjava.com/2007/11/velocity-framework.html"&gt;Velocity&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.interviewjava.com/search/label/AXIS"&gt;Apache AXIS&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.interviewjava.com/2008/09/what-is-test-driven-development.html"&gt;Test Driven Development (TDD)&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Architectures:&lt;/i&gt;&lt;br /&gt;&lt;a href="http://www.interviewjava.com/2008/04/simplifying-service-oriented.html"&gt;Service Oriented Architecture&lt;/a&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;Others&lt;/i&gt;&lt;a href="http://www.interviewjava.com/2007/07/interview-questions-on-java-design.html"&gt;Java Design Patterns&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If anyone of you has come across a very unique experience in terms of technical and personal questions asked, feel free to share your experience.&lt;br /&gt;&lt;br /&gt;Keep sharing your &lt;a href="http://javajeeresources.blogspot.com/"&gt;resources &lt;/a&gt;for ongoing learning...&lt;br /&gt;&lt;br /&gt;Learn more about Java EE, &lt;a href="http://java.sun.com/javaee/" target="_blank"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFRvAUPw6RDbU9UGVMETYsg85fJumyxEHEzGj8H53OxWhqmJh6H2qvD4F2rVDks44QFgJGxRK5j24nHYSeXY-5hB4G4C18cRVNU8uUwJt0mzJtRzhpBRBe7XSuk651oFkg01h8vhGL3NDU/s1600/coreJava.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFRvAUPw6RDbU9UGVMETYsg85fJumyxEHEzGj8H53OxWhqmJh6H2qvD4F2rVDks44QFgJGxRK5j24nHYSeXY-5hB4G4C18cRVNU8uUwJt0mzJtRzhpBRBe7XSuk651oFkg01h8vhGL3NDU/s320/coreJava.jpg" width="320" height="232" data-original-width="537" data-original-height="390" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-8148979630051682";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQzcLH7QEaCD_4BVTjvVryKLGsuIEB";
google_ad_channel = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://www.interviewjava.com/2007/05/java-ee-interview-questions.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFRvAUPw6RDbU9UGVMETYsg85fJumyxEHEzGj8H53OxWhqmJh6H2qvD4F2rVDks44QFgJGxRK5j24nHYSeXY-5hB4G4C18cRVNU8uUwJt0mzJtRzhpBRBe7XSuk651oFkg01h8vhGL3NDU/s72-c/coreJava.jpg" width="72"/></item></channel></rss>