<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-35897879</id><updated>2026-10-12T06:43:12.830+11:00</updated><category term="Core Java"/><category term="Coding"/><category term="Java career"/><category term="Multi-threading"/><category term="Spring"/><category term="design pattern"/><category term="Hibernate"/><category term="Java 8"/><category term="Tools"/><category term="Web services"/><category term="Java Key Areas"/><category term="XML"/><category term="Testing"/><category term="Architecture"/><category term="Java EE"/><category term="UNIX"/><category term="Performance"/><category term="SQL"/><category term="Java developer"/><category term="JavaScript"/><category term="OO"/><category term="spring batch"/><category term="Apache Camel"/><category term="Java freelancer"/><category term="Maven"/><category term="Monitoring"/><category term="Written tests"/><category term="security"/><category term="DataStructure"/><category term="Eclipse Tutorial"/><category term="Hibernate Tutorial"/><category term="JEE"/><category term="JasperReports"/><category term="Java Lambda expressions"/><category term="Java resume"/><category term="Spring JDBC"/><category term="algorithm"/><category term="JMS"/><category term="JSF"/><category term="Java CV"/><category term="Java I/O"/><category term="Java Interview"/><category term="Java Interview Answers"/><category term="Java Interview Questions"/><category term="Maven Tutorial"/><category term="RESTful"/><category term="AngularJS"/><category term="BDD"/><category term="CSS"/><category term="Class loader"/><category term="Drools tutorial"/><category term="JDBC"/><category term="JEE Tutorial"/><category term="JMX"/><category term="Java Debugging"/><category term="Mockito"/><category term="Notepad"/><category term="Spring MVC"/><category term="Spring security"/><category term="Tree structure"/><category term="generics"/><category term="AOP"/><category term="Agile development"/><category term="FIX"/><category term="HTML"/><category term="JAXB"/><category term="JVM"/><category term="Java 7"/><category term="Java 8 tutorial"/><category term="Java Tutorial"/><category term="Metrics"/><category term="RESTEasy"/><category term="SVN"/><category term="Scalability"/><category term="Spring core"/><category term="Technical Blogging"/><category term="Websphere MQ"/><category term="annotation"/><category term="jBehave"/><category term="libraries"/><category term="mock objects"/><category term="regex"/><category term="unit testing"/><category term="BigData"/><category term="Blogging tips"/><category term="Database"/><category term="FireBug"/><category term="Investment Banking"/><category term="JMeter"/><category term="JPA"/><category term="Java Architect"/><category term="Java certification"/><category term="Java coding"/><category term="Logging"/><category term="QuickFIX"/><category term="RESTClient"/><category term="RequireJS"/><category term="SDLC"/><category term="SQL Tutorial"/><category term="Servlets"/><category term="Spring tutorial"/><category term="Sybase"/><category term="TransactionMgmt"/><category term="UML"/><category term="aspectj"/><category term="functional programming"/><category term="jQuery"/><category term="AMQP"/><category term="Ant"/><category term="Best Practice"/><category term="CORS"/><category term="DOS"/><category term="Data Warehouse"/><category term="EHCache"/><category term="Encryption"/><category term="Exception Handling"/><category term="Firefox"/><category term="JBoss"/><category term="JDBC Tutorial"/><category term="JNDI"/><category term="JSF Tutorial"/><category term="JSON"/><category term="JSONP"/><category term="JSP"/><category term="JTA"/><category term="Java training"/><category term="LDAP"/><category term="MapReduce"/><category term="Memory"/><category term="OpenCSV"/><category term="Platform"/><category term="RUP"/><category term="SSL"/><category term="SourceControl"/><category term="Spring Integration"/><category term="Stored Procedure"/><category term="Visual VM"/><category term="Weblogic"/><category term="Yammer"/><category term="ajax"/><category term="auditing"/><category term="books"/><category term="cURL"/><category term="soapUI"/><category term="triggers"/><title type='text'>Java-Success Blog</title><subtitle type='html'>Java/JEE blog containing interview questions and answers and tutorials</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>477</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-35897879.post-794313675242500934</id><published>2014-11-22T00:15:00.000+11:00</published><updated>2014-11-22T00:15:30.205+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java career"/><title type='text'>Are you a Java beginner? Why good Java developers are self-taught?</title><summary type="text">Q. Are you a beginner wanting to learn Java?
A. If the answer is yes, read on. You can&#39;t learn much with a paid 5 to 10 days or even a 3 month course. It will only set you back on your wallet. &amp;nbsp;Formal education like computer science degree is very valuable and will be well recognized. But, there are a group of people like me who want to make a career transition from other degrees like </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/794313675242500934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/11/are-you-java-beginner-why-good-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/794313675242500934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/794313675242500934'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/11/are-you-java-beginner-why-good-java.html' title='Are you a Java beginner? Why good Java developers are self-taught?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-4694173907295174142</id><published>2014-11-18T10:01:00.000+11:00</published><updated>2014-11-18T10:01:41.187+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Core Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Exception Handling"/><title type='text'>Java exception handling beginner mistakes and best practices </title><summary type="text">a) Sweeping exceptions under the carpet by doing nothing. 


try{
     //...
}catch(SQLException sqe){
    // do nothing
}


In few rare scenarios, it is desired to do nothing with an exception, e.g. in a finally block, you try to close database connection, and some exception occurs. In this case, exception can be ignored.

try{
 
}catch(SQLException sqe){
    //...
}finally{
    try{
        </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/4694173907295174142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/11/java-exception-handling-beginner.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/4694173907295174142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/4694173907295174142'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/11/java-exception-handling-beginner.html' title='Java exception handling beginner mistakes and best practices '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRVyGPixLPSvQBclDc9odaFIfyS3Cw3Fs3dEHepAdMi51tHvSZ5ibPmxd1oiiSg8Hb-XkRak8kBlgSyFL6kAIwWZH4R43zTQu-BlUuLokYV2vNWH0rcunMHMjd_MKNlO8w6vT8xw/s72-c/exception-hierachy.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-3384046205164506804</id><published>2014-11-13T22:44:00.001+11:00</published><updated>2014-11-16T19:50:12.586+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="UNIX"/><title type='text'>Unix Interview Questions and Answers for Java developers</title><summary type="text">Most commercial Java applications run in a Unix environment. For example, batch jobs. Here are a few Unix questions and answers to test your Unix knowledge.

Q. Can you write a Unix function that parses the command-line arguments?

For example:

&lt;!-- INFOLINKS_OFF --&gt;


&amp;nbsp;process_txns.ksh -env $ENV -backdate 20130125



A.&amp;nbsp;Usually only nine command line arguments can be accessed using </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/3384046205164506804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/11/unix-interview-questions-and-answers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/3384046205164506804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/3384046205164506804'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/11/unix-interview-questions-and-answers.html' title='Unix Interview Questions and Answers for Java developers'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-8982903801601584659</id><published>2014-10-23T14:15:00.000+11:00</published><updated>2014-10-23T14:15:12.503+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Debugging"/><category scheme="http://www.blogger.com/atom/ns#" term="Tools"/><title type='text'>Debugging and working  like a pro with a Java application tutorial with eclipse IDE </title><summary type="text">Often you get to work on a fully functional Java application that is already in production to fix production issues or to enhance its existing functionality. As a new Java developer in the team, it is not easy to get started and contributing. The approach would be slightly different from working on a brand new project. Here are a few tips that will help you hit the road running as quickly as </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/8982903801601584659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/10/debugging-and-working-like-pro-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8982903801601584659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8982903801601584659'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/10/debugging-and-working-like-pro-with.html' title='Debugging and working  like a pro with a Java application tutorial with eclipse IDE '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOTV-JPl2DO188LzIPUwSO9fpcxGLOzUsBJDl5F3G25EN4rK6iOL19JdQmMCUtZaejucqeXbAsNWpJw4IO7sBqq5MVJGmm7DJoHhYomzjYhiGPLhH5zy4CxJFEIrx3MysivUDpRQ/s72-c/pro-debug-1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-2821513957210898035</id><published>2014-10-22T12:29:00.002+11:00</published><updated>2014-10-22T13:34:27.606+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Metrics"/><category scheme="http://www.blogger.com/atom/ns#" term="Monitoring"/><category scheme="http://www.blogger.com/atom/ns#" term="Yammer"/><title type='text'>Yammer metrics to monitor RESTful web services and report them via its admin web</title><summary type="text">This is a Yammer metrics tutorial to  monitor RESTful web services. This extends RESTEasy  web service tutorial basic and the basic stand-alone Yammer tutorial. 

Step 1: The pom.xml file needs to have relevant dependencies defined relating to Yammer and Spring Web in addition to the JAX-RS librraies that was covered in the previous tutorial.


&lt;!-- INFOLINKS_OFF --&gt;


  &amp;lt;!-- Yammer Metrics --</summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/2821513957210898035/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/10/yammer-metrics-to-monitor-restful-web_22.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/2821513957210898035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/2821513957210898035'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/10/yammer-metrics-to-monitor-restful-web_22.html' title='Yammer metrics to monitor RESTful web services and report them via its admin web'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-8710378483698473177</id><published>2014-10-10T12:46:00.000+11:00</published><updated>2014-10-10T12:46:27.095+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DataStructure"/><title type='text'>When to use which Java collection or data structure? and why?</title><summary type="text">List, Set, Map, and Queue(access the ends FIFO or LIFO) are the basic Java data structure interfaces for which there are different implementations to cater for different usage patterns. Java data structure interview questions are very popular, and pays to know the differences.

#1 Array (Employee[]) Vs List (List&amp;lt;Employee&amp;gt;):&amp;nbsp;

Array is a fixed length data structure whilst a List is a </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/8710378483698473177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/10/when-to-use-which-java-collection-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8710378483698473177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8710378483698473177'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/10/when-to-use-which-java-collection-or.html' title='When to use which Java collection or data structure? and why?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-1766608749138261711</id><published>2014-10-01T17:55:00.000+10:00</published><updated>2014-10-02T13:23:10.803+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java career"/><title type='text'>How to prepare or train for Java and JEE Job Interviews?</title><summary type="text">What are the core concepts?

If you just rely only on your experience alone, it can take a long time to get a good handle on the core concepts and the 16 key areas. The best way to fast track your career is to proactively learn and apply them. 











What are these 16 technical key areas?&amp;nbsp;






Language Fundamentals (LF)
Specification Fundamentals (SF)
Platform Fundamentals (PF)
Design</summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/1766608749138261711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2011/09/how-to-prepare-for-javajee-job.html#comment-form' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/1766608749138261711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/1766608749138261711'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2011/09/how-to-prepare-for-javajee-job.html' title='How to prepare or train for Java and JEE Job Interviews?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsmHbKQwrxe66AgvuRh4VS0hRjD3MyokHsMm9n4K4GrIAefudbIr77c6zkcx7dPeclbL25SiDZ4Y2UO-GhrIWtXWPWOtrGGts2QQFR3GJQHjoLXhHEmFSqmFSSj1kxznMplUAzWQ/s72-c/confused.bmp" height="72" width="72"/><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-1694905698333289316</id><published>2014-10-01T12:26:00.000+10:00</published><updated>2014-10-01T12:26:19.621+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Metrics"/><category scheme="http://www.blogger.com/atom/ns#" term="Monitoring"/><title type='text'>Yammer metrics to monitor RESTful web services with a Servlet filter</title><summary type="text">This extends&amp;nbsp;Yammer metrics to monitor RESTful web services and report them via its admin web to demonstrate how a Servlet &amp;nbsp;filter can be added to gather metrics for

response codes for 200, 201, 404, etc to get a count.
active requests count
requests timing.




Step 1: &amp;nbsp;Decorate the &quot;HttpServletResponseWrapper&quot; class.&amp;nbsp;HttpServletResponseWrapper is one particular </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/1694905698333289316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/10/yammer-metrics-to-monitor-restful-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/1694905698333289316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/1694905698333289316'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/10/yammer-metrics-to-monitor-restful-web.html' title='Yammer metrics to monitor RESTful web services with a Servlet filter'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-5528404070719367489</id><published>2014-09-02T00:21:00.001+10:00</published><updated>2014-09-02T00:21:39.800+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JMX"/><category scheme="http://www.blogger.com/atom/ns#" term="Monitoring"/><category scheme="http://www.blogger.com/atom/ns#" term="Performance"/><title type='text'>Monitoring and gathering statistics with JMX based jconsole and Yammer metrics</title><summary type="text">This post extends &amp;nbsp;Yammer Metrics with Spring tutorial to demonstrate how the metrics can be monitored for the TradeEngineMain application.

Step 1: Run the&amp;nbsp;TradeEngineMain &amp;nbsp;java class created in the Yammer metrics tutorial.

Step 2: From the DOS command prompt, type jconsole

C:\Users\akumaras&amp;gt;jconsole

Step 3: &amp;nbsp;The jconsole window pops up as shown below.





Step 4: You </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/5528404070719367489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/09/monitoring-and-gathering-statistics.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/5528404070719367489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/5528404070719367489'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/09/monitoring-and-gathering-statistics.html' title='Monitoring and gathering statistics with JMX based jconsole and Yammer metrics'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJaQA1aDID4BPB4dxiSAXbW4AVJ0CaN8_76Gx_OKvQBKVuz6Uy2pID1sSGRmCcpKP-RAy3bzsZRa5TDUa1mb7XD6XG9ufyJbZWr_awN1J0cT_2LbRA9X-ny4g_UCJ_URbAEcMgEg/s72-c/yammer-metrics-jconsole.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-2027974210354906680</id><published>2014-08-22T12:02:00.000+10:00</published><updated>2014-08-22T12:02:15.071+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Key Areas"/><category scheme="http://www.blogger.com/atom/ns#" term="Multi-threading"/><title type='text'>What are the different ways a Java thread gets blocked or suspended? How will you debug Java threading issues?</title><summary type="text">1. It has been put to sleep for a set amount of time

 
   public void run(){
       try{
           while(true){
               this.sleep(1000);
               System.out.println(&quot;looping while&quot;);
            }
        }catch(InterruptedException ie){
        ie.printStackTrace();
  }
   }



2. The thread is suspended by call to wait( ), and will become runnable on a notify or notifyAll </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/2027974210354906680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/08/what-are-different-ways-java-thread.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/2027974210354906680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/2027974210354906680'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/08/what-are-different-ways-java-thread.html' title='What are the different ways a Java thread gets blocked or suspended? How will you debug Java threading issues?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-9150612468527272294</id><published>2014-08-08T23:44:00.001+10:00</published><updated>2014-08-08T23:50:45.160+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Multi-threading"/><title type='text'>What is a volatile variable in Java and when should you use it?</title><summary type="text">
Java Multi-threading Interview Questions and Answers



Beginner Q&amp;amp;A  
More beginner Q&amp;amp;A  
Beginner locks 
Beginner thread communication 
Beginner thread sequencing 
Intermediate Q&amp;amp;A  
Volatile variable



Advanced Q&amp;amp;A 
Printing odd and even numbers 
Thread pools 
ExecutorService 
Atomic operations 
CountDownLatch and CyclicBarrier 
Semaphores and mutexes 




Three of the Java </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/9150612468527272294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/08/what-is-volatile-variable-in-java-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/9150612468527272294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/9150612468527272294'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/08/what-is-volatile-variable-in-java-and.html' title='What is a volatile variable in Java and when should you use it?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-3070537432115322108</id><published>2014-08-07T16:24:00.001+10:00</published><updated>2014-08-07T16:24:10.949+10:00</updated><title type='text'>How to capture user input in Java or interact with user via command line</title><summary type="text">#1: Using the System.console( ) . This will not work within eclipse IDE. You can try it on a DOS or Unix command-line.

package com.user.input;

import java.io.Console;

public class Example1 {
 
  public static void main(String[] args) {
   Console console = System.console();
   String input = console.readLine(&quot;What is your name:&quot;);
   System.out.println(&quot;User input = &quot; + input);
 }
}


The </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/3070537432115322108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/08/how-to-capture-user-input-in-java-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/3070537432115322108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/3070537432115322108'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/08/how-to-capture-user-input-in-java-or.html' title='How to capture user input in Java or interact with user via command line'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-8450432650069049702</id><published>2014-08-06T10:03:00.001+10:00</published><updated>2014-08-06T10:03:19.647+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Performance"/><title type='text'>Top 10 causes of performance issues in Java</title><summary type="text">Cause #1: The JVM spends more time performing garbage collection due to

improper Garbage Collection (GC) configuration. E.g. Young generation being too small.
Heap size is too small (use -Xmx). The application footprint is larger than the allocated heap size.
Wrong use of libraries. For example, XML based report generation using DOM parser as opposed to StAX for large reports generated </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/8450432650069049702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/08/top-10-causes-of-performance-issues-in.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8450432650069049702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8450432650069049702'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/08/top-10-causes-of-performance-issues-in.html' title='Top 10 causes of performance issues in Java'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-8503150006938729556</id><published>2014-08-05T13:47:00.000+10:00</published><updated>2014-08-05T13:47:12.440+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JSON"/><title type='text'>Java and JSON tutorial converting JSON to object and vice versa with Jackson library</title><summary type="text">Q. What is JSON and when to favor it over XML? 
A. JSON (JavaScript Object Notation) is a lightweight, text-based, language-netral like XML, but less verbose than XML data exchange format. JSOJ is used in Web services to exchange data between client and server. Client makes ajax requests to get snippets of data in JSON format from the server via RESTful web service calls. JSON is easy for humans </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/8503150006938729556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/08/java-and-json-tutorial-converting-json.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8503150006938729556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8503150006938729556'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/08/java-and-json-tutorial-converting-json.html' title='Java and JSON tutorial converting JSON to object and vice versa with Jackson library'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-8111743534624084494</id><published>2014-08-05T10:33:00.000+10:00</published><updated>2014-08-05T10:33:00.080+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><title type='text'>Java and XSLT tutorial  to transform XML documents</title><summary type="text">Q. What is XSLT?
A. XSLT (Extensible Stylesheet Language Transformations) is a language for transforming XML documents into other XML, HTML, or plain text documents. XSLT is based on functional prgramming ideas, but it is not a full functional programming language as it lacks ability to treat functions as a first class data type. &amp;nbsp;XSLT supports XPath to query parts of XML. The major </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/8111743534624084494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/08/java-and-xslt-tutorial-to-transform-xml.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8111743534624084494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8111743534624084494'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/08/java-and-xslt-tutorial-to-transform-xml.html' title='Java and XSLT tutorial  to transform XML documents'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-102714859992896666</id><published>2014-08-04T18:25:00.000+10:00</published><updated>2014-08-04T20:05:34.471+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FIX"/><title type='text'>Finding your way around the FIX specification</title><summary type="text">
FIX and Java



 FIX tutorial in Java with QuickFIX/j simple example 
 QuickFix Java example sending and receiving FIX messages 
 Finding your way around the FIX specification 



If you are using FIX spec 4.4 then go to https://fixspec.com/FIX44. The tutorials with QuickFIX/J used NewSingleOrder as the request.




The message has the fields like Tag number.








FIX message for </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/102714859992896666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/08/finding-your-way-around-fix.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/102714859992896666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/102714859992896666'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/08/finding-your-way-around-fix.html' title='Finding your way around the FIX specification'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNusYEQKAaPjFZOFzi5wualgivJpoDUpnKgH5YF8PGbCV9t9HOciPkHHzHqjwmk5GP5YJz5mQlCn8ms0NywiIFQ9cszFEZEUd0X38lkdiIZESY_lyCyK-ZPBB_wlvskG3LSEhrmw/s72-c/Screen+shot+2014-08-02+at+11.40.47+AM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-473049564355362025</id><published>2014-08-04T18:24:00.003+10:00</published><updated>2014-08-04T19:26:41.854+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FIX"/><category scheme="http://www.blogger.com/atom/ns#" term="QuickFIX"/><title type='text'>QuickFix Java example sending and recieving FIX messages</title><summary type="text">
FIX and Java



 FIX tutorial in Java with QuickFIX/j simple example 
 QuickFix Java example sending and receiving FIX messages 
 Finding your way around the FIX specification 



If you like to work on trading applications, you need to know the &amp;nbsp;FIX&amp;nbsp;protocol and a FIX
&amp;nbsp;engine like&amp;nbsp;QuickFIX/J.&amp;nbsp;

This extends our simple QuickFIX Java example tutorial. This assumes that </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/473049564355362025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/08/quickfix-java-example-sending-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/473049564355362025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/473049564355362025'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/08/quickfix-java-example-sending-and.html' title='QuickFix Java example sending and recieving FIX messages'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-8164430968344145854</id><published>2014-08-01T18:09:00.003+10:00</published><updated>2014-08-01T18:09:47.045+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java 8"/><title type='text'>Top 8 things you must know about Java 8 to start coding on the job and talking at the job interviews</title><summary type="text">Are you ready to get cracking with Java 8 new features? Here are a comprehensive Java 8 features, tutorials, and examples. Drill down into each. 

#1: Transforming your thinking from OOP to FOP:&amp;nbsp;One needs to get used to the transformation from&amp;nbsp;imperative programming to functional &amp;nbsp;programming. You like it or not, you will be using functional programming in Java 8, and interviewers </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/8164430968344145854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/08/top-8-things-you-must-know-about-java-8.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8164430968344145854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8164430968344145854'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/08/top-8-things-you-must-know-about-java-8.html' title='Top 8 things you must know about Java 8 to start coding on the job and talking at the job interviews'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-6058463632307469391</id><published>2014-08-01T17:17:00.001+10:00</published><updated>2014-08-01T17:17:27.112+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java 8"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Lambda expressions"/><title type='text'>Java 8 using the Predicate functional interface</title><summary type="text">The java.util.function package in Java 8 has a number of functional interfaces. Let&#39;s look at the Predicate&amp;lt;T&amp;gt; interface that is used for filtering objects from a collection. If you are using a Java version pre Java 8 refer Creating sub lists from a list using predicates to filter.

Here is the Java 8 example:

Step 1: Create a Driver domain class using the builder design pattern. Refer How</summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/6058463632307469391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/08/java-8-using-predicate-functional.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/6058463632307469391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/6058463632307469391'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/08/java-8-using-predicate-functional.html' title='Java 8 using the Predicate functional interface'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-2255178715256755769</id><published>2014-08-01T10:09:00.000+10:00</published><updated>2014-08-01T10:09:41.531+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><title type='text'>Java and XPath tutorial to extract a subset of an XML</title><summary type="text">Q. What is XPath?
A. XPath is a query language to extract a part of XML document as an SQL is used to extract a part of a database data or a REGEX (i.e. regular expression) is used to extract a part of text. The XPath expressions can return,

XPathConstants.STRING
XPathConstants.NUMBER
XPathConstants.BOOLEAN
XPathConstants.NODE
XPathConstants.NODESET 



Here is a very basic example of XPath in </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/2255178715256755769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/08/java-and-xpath-tutorial-to-extract.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/2255178715256755769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/2255178715256755769'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/08/java-and-xpath-tutorial-to-extract.html' title='Java and XPath tutorial to extract a subset of an XML'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-8298427450089357836</id><published>2014-07-31T14:22:00.005+10:00</published><updated>2014-08-04T19:22:38.931+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FIX"/><category scheme="http://www.blogger.com/atom/ns#" term="QuickFIX"/><title type='text'>FIX tutorial in Java with QuickFIX/j simple example </title><summary type="text">
FIX and Java



 FIX tutorial in Java with QuickFIX/j simple example 
 QuickFix Java example sending and receiving FIX messages 
 Finding your way around the FIX specification 



If you like to work on trading applications, you need to know the &amp;nbsp;FIX protocol and a FIX engine like QuickFIX/J. 

Q. What is FIX Protocol?
A. FIX stands for Financial Information eXchange, which is an open </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/8298427450089357836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/07/fix-tutorial-in-java-with-quickfixj.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8298427450089357836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8298427450089357836'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/07/fix-tutorial-in-java-with-quickfixj.html' title='FIX tutorial in Java with QuickFIX/j simple example '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhspmkXcuTn6szB76t_W6woMrbpSKqqYeKI3DjpFrDEOlXNjDvK89keZc8E3dtMPj1-YQR9jX70ufcWhtBk6P4zKx11DsR9iMCbA9YgEJX_u-XCzROpROKJqf7UFDDCkdMmefGRWg/s72-c/QuickFIX.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-8261806646674542110</id><published>2014-07-31T10:27:00.001+10:00</published><updated>2014-07-31T10:27:28.535+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><title type='text'>Java and XML tutorial with SAX parser - reading only</title><summary type="text">Q. What is a SAX Parser and when will you use it?
A.&amp;nbsp;SAX &amp;nbsp;(Simple API for XML) is a stream oriented API like StAX, but


Unlike StAX, which can read and write, but SAX can only read.
Unlike StAX, which can&#39;t validate schema, SAX can perform schema validation.


SAX works by iterating over the XML and call certain methods on a &quot;handler&quot; object , which listens to events like&amp;nbsp;</summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/8261806646674542110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/07/java-and-xml-tutorial-with-sax-parser.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8261806646674542110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8261806646674542110'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/07/java-and-xml-tutorial-with-sax-parser.html' title='Java and XML tutorial with SAX parser - reading only'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWgD6N4EUYhDmJKO6JqFByTpTe11WwkVL-MKTTmoeCqcxyZSUCbGrTlMp1mA8mYWycUnZN1Z0mv6SAEtxiWdugdAcDEqVluQzigYnmxnmODDYVRahndF-h0s0_Ni24cuYhwEKIJQ/s72-c/xml-stax.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-8024386385068815747</id><published>2014-07-30T13:46:00.000+10:00</published><updated>2014-07-30T13:46:32.281+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><title type='text'>Java and XML tutorial with StAX parser - writing cursor based and iterator based</title><summary type="text">



package com.xml;

import java.math.BigDecimal;

import org.springframework.core.style.ToStringStyler;

public class Employee {
 private String name;
 private String type;
 private int age;
 private BigDecimal salary;
 public String getName() {
  return name;
 }
 public void setName(String name) {
  this.name = name;
 }
 public String getType() {
  return type;
 }
 public void setType(String </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/8024386385068815747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/07/java-and-xml-tutorial-with-stax-parser_30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8024386385068815747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/8024386385068815747'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/07/java-and-xml-tutorial-with-stax-parser_30.html' title='Java and XML tutorial with StAX parser - writing cursor based and iterator based'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWgD6N4EUYhDmJKO6JqFByTpTe11WwkVL-MKTTmoeCqcxyZSUCbGrTlMp1mA8mYWycUnZN1Z0mv6SAEtxiWdugdAcDEqVluQzigYnmxnmODDYVRahndF-h0s0_Ni24cuYhwEKIJQ/s72-c/xml-stax.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-3326343778935159814</id><published>2014-07-29T20:02:00.001+10:00</published><updated>2014-08-06T18:46:56.716+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java career"/><title type='text'>Why this Java blog? Are you feeling stagnated or finding it hard to get good Java jobs?</title><summary type="text">I can think of 8 reasons


As a journal of my valuable experience for future reference, which otherwise would be lost as Java/JEE technologies, frameworks, libraries, and tools are very vast.
As a motivator to proactively learn, apply, and experience new concepts, frameworks, and tools without feeling stagnated. Just knowing Java alone is never enough in this fiercely competitive market. You need</summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/3326343778935159814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/07/are-you-feeling-stagnated-or-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/3326343778935159814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/3326343778935159814'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/07/are-you-feeling-stagnated-or-not.html' title='Why this Java blog? Are you feeling stagnated or finding it hard to get good Java jobs?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35897879.post-5200649387607191212</id><published>2014-07-29T09:58:00.004+10:00</published><updated>2014-07-29T09:58:53.360+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><title type='text'>Java and XML tutorial with StAX parser - reading</title><summary type="text">Q. What is a StAX Parser and when will you use it?
A.&amp;nbsp;The StAX Java API for XML processing is designed for parsing XML streams, just like the SAX API&#39;s, but

StAX is a &quot;pull&quot; API whereas SAX is a &quot;push&quot; API.
StAX can do both XML reading and writing whereas SAX can only do XML reading.




Q. Why use StAX when there is DOM?

A.&amp;nbsp;The DOM parsing involves creating in-memory objects </summary><link rel='replies' type='application/atom+xml' href='http://java-success.blogspot.com/feeds/5200649387607191212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-success.blogspot.com/2014/07/java-and-xml-tutorial-with-stax-parser.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/5200649387607191212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35897879/posts/default/5200649387607191212'/><link rel='alternate' type='text/html' href='http://java-success.blogspot.com/2014/07/java-and-xml-tutorial-with-stax-parser.html' title='Java and XML tutorial with StAX parser - reading'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/00869496028596976417</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgte83C5g0N24H4LC-3LGhtVV6bG-bw8Igok4YSTRbP3BwpyWFnyc1ir__Au0LSkQEPqhskzEYc3ru0uK2oBtyxIQGwAhdEQ55tL_kNNDyMu58tRQEth6UHM7oBjALJmlEzJ03LYQ/s72-c/xml-stax.jpg" height="72" width="72"/><thr:total>1</thr:total></entry></feed>