<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Free practice test , mock test, driving test, interview questions &#187; java</title>
	<atom:link href="http://www.skill-guru.com/blog/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.skill-guru.com/blog</link>
	<description>Find free mock and practice test, create and sell tests</description>
	<lastBuildDate>Mon, 16 Jan 2012 16:53:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Google launches contract for Java</title>
		<link>http://www.skill-guru.com/blog/2011/02/09/google-launches-contract-for-java/</link>
		<comments>http://www.skill-guru.com/blog/2011/02/09/google-launches-contract-for-java/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 23:57:56 +0000</pubDate>
		<dc:creator>Vinay</dc:creator>
				<category><![CDATA[Programming / tutorials]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.skill-guru.com/blog/?p=3828</guid>
		<description><![CDATA[Contracts for Java is a new open source tool from Google that makes it easier to implement contracts in Java. According to Google&#8217;s announcement, this new tool is based on Modern Jass by  Johannes Rieken and inspired by the programming language  Eiffel.  It was created by two Google engineers &#8211; David Morgan, [...]]]></description>
			<content:encoded><![CDATA[<p><a title="opens in new window" href="http://code.google.com/p/cofoja" target="_blank">Contracts for Java</a> is a new open source tool from Google that makes it easier to implement contracts in Java. According to Google&#8217;s <a title="opens in new window" href="http://google-opensource.blogspot.com/2011/02/contracts-for-java.html" target="_blank">announcement</a>, this new tool is based on <a title="opens in new window" href="http://modernjass.sourceforge.net/" target="_blank">Modern Jass</a> by <a title="opens in new window" href="http://www.linkedin.com/pub/dir/Johannes/Rieken" target="_blank"> Johannes Rieken</a> and inspired by the programming language <a title="opens in new window" href="http://www.eiffel.com/" target="_blank"> Eiffel</a>.  It was created by two Google engineers &#8211; David Morgan, Andreas Leitner &#8211;  using their 20% time, and was expanded as part of an internship by Nhat  Minh Le.</p>
<p>These guys are trying to solve one basic fundamental problem in software programming i.e How do you enforce the contract of any class or method ?</p>
<p>Contracts for Java enables you to write annotate your code with  contracts in the form of<strong> preconditions, postconditions and invariants</strong>.</p>
<p>These contract annotations are</p>
<ul>
<li>easy to write and read,</li>
<li>and checked at runtime.</li>
</ul>
<p>Annotating code with contracts helps you:</p>
<ul>
<li>design,</li>
<li>document,</li>
<li>test, and</li>
<li>debug <span id="more-3828"></span></li>
</ul>
<p>your programs.</p>
<p>You will have to download one of the jars to start using the contracts in your code. This jar is not official yet but you can give a try.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skill-guru.com/blog/2011/02/09/google-launches-contract-for-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating your first REST service using Jersey</title>
		<link>http://www.skill-guru.com/blog/2010/12/29/creating-your-firs-rest-service-with-jersey/</link>
		<comments>http://www.skill-guru.com/blog/2010/12/29/creating-your-firs-rest-service-with-jersey/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 12:50:38 +0000</pubDate>
		<dc:creator>Vinay</dc:creator>
				<category><![CDATA[Programming / tutorials]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jersey]]></category>
		<category><![CDATA[REST]]></category>

		<guid isPermaLink="false">http://www.skill-guru.com/blog/?p=2976</guid>
		<description><![CDATA[In the last post , we had talked about SOAP being retired in favor of REST based service. in which we discussed advantages of REST over SOAP.
This post will be a short tutorial on creating your first REST based service.
What is REST  and how are they accesses ?
From Sun(oracle) docs
RESTful web services are built to [...]]]></description>
			<content:encoded><![CDATA[<p>In the last post , we had talked about <a href="http://www.skill-guru.com/blog/2010/11/02/goodbye-soap-welcome-json-rest/">SOAP being retired in favor of REST based service</a>. in which we discussed advantages of REST over SOAP.</p>
<p>This post will be a short tutorial on creating your first REST based service.</p>
<h3>What is REST  and how are they accesses ?</h3>
<p>From Sun(oracle) docs</p>
<blockquote><p><strong>RESTful web services</strong> are built to work best on the Web.  Representational State Transfer (REST) is an architectural style that specifies constraints, such as the uniform interface, that if applied to a web service induce desirable properties, such as performance, scalability, and modifiability, that enable services to work best on the Web. In the REST architectural style, data and functionality are considered resources and are accessed using <strong>Uniform Resource Identifiers (URIs)</strong>, typically links on the Web. The resources are acted upon by using a set of simple, well-defined operations. The REST architectural style constrains an architecture to a client/server architecture and is designed to use a stateless communication protocol, typically HTTP. In the REST architecture style, clients and servers exchange representations of resources by using a standardized interface and protocol.</p></blockquote>
<p>Why use  JERSEY ?</p>
<p>Java defines standard REST support via JAX-RS (The Java API for 			RESTful Web Services) in 			<a href="http://jcp.org/aboutJava/communityprocess/final/jsr311/index.html" target="_top">JSR 311</a>. Jersey is the open source,                     production quality, <a href="http://jsr311.dev.java.net/nonav/releases/1.1/index.html">JAX-RS</a> (JSR 311) Reference Implementation for building RESTful Web services</p>
<p>Here is the objective of our tutorial</p>
<ul>
<li> Set up development environment and infrastructure to build first REST full app using JERSEY</li>
<li>Create the sample application</li>
<li>Deploy and run in tomcat<span id="more-2976"></span></li>
</ul>
<p>All right. Now let us get going.</p>
<h3>1. Set up development environment</h3>
<p>I have used maven to download files required to run the application. My IDE is Eclipse, server is tomcat 6.0.29</p>
<p>Add these dependencies to your pom.xml</p>
<blockquote><p>&lt;dependency&gt;<br />
&lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;<br />
&lt;artifactId&gt;jersey-json&lt;/artifactId&gt;<br />
&lt;version&gt;1.4&lt;/version&gt;<br />
&lt;/dependency&gt;<br />
&lt;dependency&gt;<br />
&lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;<br />
&lt;artifactId&gt;jersey-atom&lt;/artifactId&gt;<br />
&lt;version&gt;1.4&lt;/version&gt;<br />
&lt;/dependency&gt;<br />
&lt;dependency&gt;<br />
&lt;groupId&gt;com.sun.jersey.contribs&lt;/groupId&gt;<br />
&lt;artifactId&gt;jersey-spring&lt;/artifactId&gt;<br />
&lt;version&gt;1.4&lt;/version&gt;<br />
&lt;/dependency&gt;<br />
&lt;dependency&gt;<br />
&lt;groupId&gt;com.sun.jersey.contribs&lt;/groupId&gt;<br />
&lt;artifactId&gt;jersey-apache-client&lt;/artifactId&gt;<br />
&lt;version&gt;1.4&lt;/version&gt;<br />
&lt;/dependency&gt;</p></blockquote>
<p>2. Here is the code</p>
<p>package com.skillguru.jersey;</p>
<p>import javax.ws.rs.GET;<br />
import javax.ws.rs.Path;<br />
import javax.ws.rs.Produces;<br />
import javax.ws.rs.core.MediaType;</p>
<p>@Path(&#8220;/hellojersey&#8221;)<br />
public class HelloJersey {</p>
<p>// for TEXT_PLAIN request<br />
@GET<br />
@Produces(MediaType.TEXT_PLAIN)<br />
public String sayPlainTextHello() {<br />
return &#8220;Hello Jersey text plain&#8221;;<br />
}</p>
<p>// for HTML request<br />
@GET<br />
@Produces(MediaType.TEXT_HTML)<br />
public String sayHtmlHello() {<br />
return &#8220;&lt;html&gt; &#8221; + &#8220;&lt;title&gt;&#8221; + &#8220;Hello Jersey html&#8221; + &#8220;&lt;/title&gt;&#8221;<br />
+ &#8220;&lt;body&gt;&lt;h1&gt;&#8221; + &#8220;Hello Jersey html&#8221; + &#8220;&lt;/body&gt;&lt;/h1&gt;&#8221; + &#8220;&lt;/html&gt; &#8220;;<br />
}</p>
<p>}</p>
<p>4.Chnage settings in your web .xml as</p>
<p>This is the code for web.xml</p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<br />
&lt;web-app xmlns=&#8221;http://java.sun.com/xml/ns/j2ee&#8221; xmlns:xsi=&#8221;http://www.w3.org/2001/XMLSchema-instance&#8221; version=&#8221;2.5&#8243; xsi:schemaLocation=&#8221;http://java.sun.com/xml/ns/javaee   http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd&#8221;&gt;<br />
&lt;servlet&gt;<br />
&lt;servlet-name&gt;Jersey REST Service&lt;/servlet-name&gt;<br />
&lt;servlet-class&gt;com.sun.jersey.spi.container.servlet.ServletContainer&lt;/servlet-class&gt;<br />
&lt;init-param&gt;<br />
&lt;param-name&gt;com.sun.jersey.config.property.packages&lt;/param-name&gt;<br />
&lt;param-value&gt;<strong>com.skillguru.jersey</strong>&lt;/param-value&gt;<br />
&lt;/init-param&gt;<br />
&lt;load-on-startup&gt;1&lt;/load-on-startup&gt;<br />
&lt;/servlet&gt;<br />
&lt;servlet-mapping&gt;<br />
&lt;servlet-name&gt;Jersey REST Service&lt;/servlet-name&gt;<br />
&lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;<br />
&lt;/servlet-mapping&gt;<br />
&lt;/web-app&gt;</p>
<p>5.  Package and deploy in tomcat . Start the server .</p>
<p>Type in this in browser</p>
<p>http://localhost:8080/cmd/rest/hellojersey</p>
<p>You should see</p>
<h1>Hello Jersey in Html</h1>
<p>Tips :</p>
<p>Once you run your application , you might get this error<br />
<pre>com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.</pre><br />
Go to tomcat , into WEB-INF/classes and look out for the classes</p>
<p>The package inside which your HelloJersey class resides should be in the same durectory as specified in web.xml</p>
<p>i.e HelloJersey.class should reside in your com.skillguru.jersey package inside WEB-INF/classes</p>
<p>It should solve the problem.</p>
<p><em>Some other references </em></p>
<p>https://jersey.dev.java.net/nonav/documentation/latest/chapter_deps.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skill-guru.com/blog/2010/12/29/creating-your-firs-rest-service-with-jersey/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Core Java Interview Questions</title>
		<link>http://www.skill-guru.com/blog/2010/12/11/core-java-interview-questions/</link>
		<comments>http://www.skill-guru.com/blog/2010/12/11/core-java-interview-questions/#comments</comments>
		<pubDate>Sat, 11 Dec 2010 21:52:27 +0000</pubDate>
		<dc:creator>Vinay</dc:creator>
				<category><![CDATA[Interview questions]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.skill-guru.com/blog/?p=3147</guid>
		<description><![CDATA[Java is one of the most popular  programming languages as of now and even with introduction of hibernate , Spring, employers do expect you to be aware of core java concepts.
Here is  Core Java Interview questions to test your knowledge.
Some of the questions like
What is WeakHasmap
Jdk1.5 has introduced class data sharing which reduces the start [...]]]></description>
			<content:encoded><![CDATA[<p>Java is one of the most popular  programming languages as of now and even with introduction of hibernate , Spring, employers do expect you to be aware of core java concepts.</p>
<p>Here is  <a href="http://www.skill-guru.com/test/131/core-java-interview-questions">Core Java Interview questions</a> to test your knowledge.</p>
<p>Some of the questions like</p>
<p><em>What is WeakHasmap</em></p>
<p><em>Jdk1.5 has introduced class data sharing which reduces the start up time for java applications and to reduce the memory footprint, True or false </em></p>
<p><em>What characteristics of garbage collection have changed in jdk 5.0</em></p>
<p>you will definitely find interesting.</p>
<p>Some other <a href="http://www.skill-guru.com/tag/java">Java interview questions</a> and <a href="http://www.skill-guru.com/tag/java">Java interview quiz</a> on <a href="http://www.skill-guru.com/">skill-Guru</a> are</p>
<p><a href="http://www.skill-guru.com/test/25/java-interview-questions">Java interview questions</a></p>
<p><a href="http://www.skill-guru.com/test/125/java-interview-questions-1">Java interview questions 1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.skill-guru.com/blog/2010/12/11/core-java-interview-questions/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Apache resigns for Java Executive Committee</title>
		<link>http://www.skill-guru.com/blog/2010/12/10/apache-resigns-for-java-executive-committee/</link>
		<comments>http://www.skill-guru.com/blog/2010/12/10/apache-resigns-for-java-executive-committee/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 17:13:18 +0000</pubDate>
		<dc:creator>Vinay</dc:creator>
				<category><![CDATA[Tech news]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.skill-guru.com/blog/?p=3155</guid>
		<description><![CDATA[In another blow in trying to bring Java Open source , Apache has resigned from Java SE/EE executive committee.
Why Apache took this step ?
The  recent Java SE 7 vote was the last chance for the JCP EC to demonstrate  that the EC has any intent to defend the JCP as an open specification [...]]]></description>
			<content:encoded><![CDATA[<p>In another blow in trying to bring Java Open source , <a href="https://blogs.apache.org/foundation/entry/the_asf_resigns_from_the">Apache has resigned from Java SE/EE executive committee</a>.</p>
<p>Why Apache took this step ?</p>
<blockquote><p>The  recent Java SE 7 vote was the last chance for the JCP EC to demonstrate  that the EC has any intent to defend the JCP as an open specification  process, and demonstrate that the letter and spirit of the law  matter.   To sum up the issues at stake in the vote, we believe that  while continuing to fail to uphold their responsibilities under the  JSPA, Oracle provided the EC with a Java SE 7 specification request and  license that are self-contradictory, severely restrict distribution of  independent implementations of the spec, and most importantly, prohibit  the distribution of independent open source implementations of the  spec.  Oracle has refused to answer any reasonable and responsible  questions from the EC regarding these problem</p>
<p>The Apache Software Foundation concludes  that that JCP is not an open specification process &#8211; that Java  specifications are proprietary technology that must be licensed directly  from the spec lead under whatever terms the spec lead chooses; that the  commercial concerns of a single entity, Oracle, will continue to  seriously interfere with and bias the transparent governance of the  ecosystem;  that it is impossible to distribute independent  implementations of JSRs under open source licenses such that users are  protected from IP litigation by expert group members or the spec lead;  and finally, the EC is unwilling or unable to assert the basic power of  their role in the JCP governance process</p></blockquote>
<p>This is very big step and it will again raise questions , Can java be open sourced or Oracle will try to control all aspects of Java and its licensing.</p>
<p>Is Java on path to lose its stature as open source programming language ? Although Java was not clearly open sourced but it was also not under so much control as Oracle is trying to exert on it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skill-guru.com/blog/2010/12/10/apache-resigns-for-java-executive-committee/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Switching to python</title>
		<link>http://www.skill-guru.com/blog/2010/12/03/switching-to-python/</link>
		<comments>http://www.skill-guru.com/blog/2010/12/03/switching-to-python/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 21:10:55 +0000</pubDate>
		<dc:creator>Vinay</dc:creator>
				<category><![CDATA[Programming / tutorials]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.skill-guru.com/blog/?p=3107</guid>
		<description><![CDATA[I am a java programmer and although my wife has switched to grails, I am yet to find the motivation to move on something better. If you are looking for any reasons to switch to Python, here are two excellent posts which would help you decide why Python should be your next language of choice
An [...]]]></description>
			<content:encoded><![CDATA[<p>I am a java programmer and although my wife has switched to grails, I am yet to find the motivation to move on something better. If you are looking for any reasons to switch to Python, here are two excellent posts which would help you decide why Python should be your next language of choice</p>
<p>An excellent post by Dharmesh</p>
<p><a href="http://onstartups.com/tabid/3339/bid/20493/Why-PHP-Is-Fun-and-Easy-But-Python-Is-Marriage-Material.aspx">Why PHP Is Fun and Easy But Python Is Marriage Material</a></p>
<p>A very informative post</p>
<p><a href="http://allthingsprogress.com/posts/ruby-is-beautiful-but-im-moving-to-python">Ruby is beautiful but I am moving to phython</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.skill-guru.com/blog/2010/12/03/switching-to-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parsing a date with SimpleDateFormat in java</title>
		<link>http://www.skill-guru.com/blog/2010/11/29/parsing-a-date-with-simpledateformat-in-java/</link>
		<comments>http://www.skill-guru.com/blog/2010/11/29/parsing-a-date-with-simpledateformat-in-java/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 02:52:48 +0000</pubDate>
		<dc:creator>Vinay</dc:creator>
				<category><![CDATA[Programming / tutorials]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.skill-guru.com/blog/?p=3083</guid>
		<description><![CDATA[A small code sample on how can you format java.util.date or any date into a desired format
java.util.Date todayDate = new java.util.Date()
or preferably
Date todayDate = Calendar.getInstance().getTime();
// this is the format 2010-11-25 8:30:24
SimpleDateFormat dateFormat = new SimpleDateFormat(&#8220;yyyy-MM-dd HH:mm:ss &#8220;);
String outcome = dateFormat.format(todayDate);
System.out.println(outcome);
]]></description>
			<content:encoded><![CDATA[<p>A small code sample on how can you format java.util.date or any date into a desired format</p>
<p>java.util.Date todayDate = new java.util.Date()</p>
<p>or preferably</p>
<p>Date todayDate = Calendar.getInstance().getTime();<br />
// this is the format 2010-11-25 8:30:24<br />
SimpleDateFormat dateFormat = new SimpleDateFormat(&#8220;yyyy-MM-dd HH:mm:ss &#8220;);</p>
<p>String outcome = dateFormat.format(todayDate);</p>
<p>System.out.println(outcome);</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skill-guru.com/blog/2010/11/29/parsing-a-date-with-simpledateformat-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Interview questions</title>
		<link>http://www.skill-guru.com/blog/2010/11/18/java-interview-questions-2/</link>
		<comments>http://www.skill-guru.com/blog/2010/11/18/java-interview-questions-2/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 03:58:51 +0000</pubDate>
		<dc:creator>Vinay</dc:creator>
				<category><![CDATA[Interview questions]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.skill-guru.com/blog/?p=3041</guid>
		<description><![CDATA[Java is the most popular programming language and even with onset of all new languages like Ruby, Scala, the popularity of java has only grown . Java/J2EE is the preferred enterprise solution for the business user.
So when it comes to number of jobs, no doubt java has the most most jobs. But you should also be prepared [...]]]></description>
			<content:encoded><![CDATA[<p>Java is the most popular programming language and even with onset of all new languages like Ruby, Scala, the popularity of java has only grown . Java/J2EE is the preferred enterprise solution for the business user.</p>
<p>So when it comes to number of jobs, no doubt java has the most most jobs. But you should also be prepared when going for interview and here is a series of tests and quiz to help you prepare for Java inerview</p>
<p>A free quiz to test your knowledge of core java and collections</p>
<p>Take <a href="http://www.skill-guru.com/test/125/java-interview-questions-1">java Interview questions</a>.</p>
<p>This test would test you on your basic concepts of java like</p>
<p><em>What is result Set ? (A class or interface)</em></p>
<p><em>When I say this &#8220;is the inclusion of behavior (i.e. methods) and state (i.e. variables) of a base class in a derived class so that they are accessible in that derived class&#8221;, what I am talking about  ?</em></p>
<p><em>How many JVM could be run on an operating system ?</em></p>
<p>Another <a href="http://www.skill-guru.com/test/25/java-interview-questions">Java Interview questions</a> test. This test covers more on hands on programming  and inner classes</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skill-guru.com/blog/2010/11/18/java-interview-questions-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How many JVM can be run on an operating system (OS) ?</title>
		<link>http://www.skill-guru.com/blog/2010/11/15/how-many-jvm-can-be-run-on-on-os/</link>
		<comments>http://www.skill-guru.com/blog/2010/11/15/how-many-jvm-can-be-run-on-on-os/#comments</comments>
		<pubDate>Tue, 16 Nov 2010 04:33:44 +0000</pubDate>
		<dc:creator>Vinay</dc:creator>
				<category><![CDATA[Programming / tutorials]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[JVM]]></category>

		<guid isPermaLink="false">http://www.skill-guru.com/blog/?p=3028</guid>
		<description><![CDATA[You can have one JVM per process. Since an OS supports many processes, you can have many JVMs running.
﻿When ever we start a new java process by invoking java.exe (i.e. java [class-name] ) a new instance of JVM is created. Each java process executes in its separate JVM environment &#8211; we can specify different JVM [...]]]></description>
			<content:encoded><![CDATA[<p>You can have one JVM per process. Since an OS supports many processes, you can have many JVMs running.</p>
<p>﻿When ever we start a new java process by invoking java.exe (i.e. java [class-name] ) a new instance of JVM is created. Each java process executes in its separate JVM environment &#8211; we can specify different JVM parameter for each process.</p>
<p>So you can open as many as command prompt your machine allows and run as many JVM as possible. It also means you can run <strong>different versions of JVM</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skill-guru.com/blog/2010/11/15/how-many-jvm-can-be-run-on-on-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Groovy: The new buzz in the Java world</title>
		<link>http://www.skill-guru.com/blog/2010/10/30/groovy-the-new-buzz-in-the-java-world/</link>
		<comments>http://www.skill-guru.com/blog/2010/10/30/groovy-the-new-buzz-in-the-java-world/#comments</comments>
		<pubDate>Sat, 30 Oct 2010 14:51:02 +0000</pubDate>
		<dc:creator>Chin</dc:creator>
				<category><![CDATA[Programming / tutorials]]></category>
		<category><![CDATA[groovy]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.skill-guru.com/blog/?p=2929</guid>
		<description><![CDATA[Groovy is the dynamic language for the Java Virtual Machine.  Inspired from Java, Ruby and Python, Groovy is an object-oriented language written in Java. Groovy is designed to help you get things done on the Java platform in a quicker, more concise and fun way &#8211; bringing the power of Python and Ruby inside the [...]]]></description>
			<content:encoded><![CDATA[<p>Groovy is the dynamic language for the Java Virtual Machine.  Inspired from Java, Ruby and Python, Groovy is an object-oriented language written in Java. Groovy is designed to help you get things done on the Java platform in a quicker, more concise and fun way &#8211; bringing the power of Python and Ruby inside the Java platform</p>
<p>Groovy&#8217;s addition to the application is as of enhancing the power and capabilities of java.</p>
<p>Like Java, everything is an object in Groovy.</p>
<p><img class="aligncenter size-full wp-image-2933" src="http://www.skill-guru.com/blog/wp-content/uploads/2010/10/New-Bitmap-Image-2.bmp" alt="" /></p>
<p>The java virtual machine has no idea that its running the groovy code. Groovy is written in Java. As java library is called by the name JDK, the groovy library is enclosed and called by the name GDK &#8211; Groovy Development Kit.</p>
<p><img class="aligncenter size-full wp-image-2937" src="http://www.skill-guru.com/blog/wp-content/uploads/2010/10/New-Bitmap-Image-21.bmp" alt="" /></p>
<p>It complements the productivity of the java programmers through its powerful features.<span id="more-2929"></span></p>
<p>The code is written in .groovy file and it gets compiled to byte codes (.class file).<br />
The groovy code could be directly loaded in the run time.</p>
<p><strong>What is Groovy ?</strong></p>
<p>In a nutshell it is the scripting language for the Java platform. There are many scripting languages like bash, PERL, python etc.., Most of them complement the UNIX platform. Groovy is one like them inspired by Ruby and Java, and had come in to complement the Java patform.</p>
<p><strong>Why Groovy ?</strong></p>
<p>There are many languages developed for scripting. To name a few popular ones JRuby, Jython are some of them. JRuby and Groovy has gained significant<br />
importance in the recent years and are competing each other in the recent years.</p>
<p>One could choose groovy for a variety of reasons.</p>
<ul>
<li>It has the java-like syntax</li>
<li>for a java programmer has a faster learning curve</li>
<li>contains a vast set of library features which could enhance productivity.</li>
<li>Provides coding structure in such a way that it is easy to achieve in a few lines of code than which could be achieved in java with much larger code steps.</li>
</ul>
<p>As groovy is designed to run on JVM, it serves as a protector for the codes that&#8217;s been developed for years in the past.</p>
<p>In the first look, it may seem that groovy is confusing, but in the long run it makes a big difference.</p>
<p><strong>Groovy over Java</strong></p>
<p>The main advantage of having groovy over java is the rapid development of CRUD based applications and much lesser lines of code.  Java&#8217;s capability to achieve things is done in much fewer lines of code.</p>
<p><strong>Groovy Command Line</strong></p>
<p>The groovy command line helps in executing groovy programs.<br />
<strong>The Groovy Console</strong></p>
<p><img class="aligncenter size-full wp-image-2939" src="http://www.skill-guru.com/blog/wp-content/uploads/2010/10/New-Bitmap-Image-22.bmp" alt="" /></p>
<p>The groovy console is a GUI toolkit used to run groovy programs. A groovy program could be loaded, compiled and executed in the groovy console. Of course, you could also see the output in the bottom panel instantly.</p>
<p><strong><em>To delineate the power of groovy, I could say that the whole chunk of code written in java to accomplice a task could be easily written in groovy in a fly.</em></strong></p>
<p><em>You can download groovy @ http://groovy.codehaus.org/Download</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.skill-guru.com/blog/2010/10/30/groovy-the-new-buzz-in-the-java-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is coming up in JDK 7 ?</title>
		<link>http://www.skill-guru.com/blog/2010/10/20/what-is-coming-up-in-jdk-7/</link>
		<comments>http://www.skill-guru.com/blog/2010/10/20/what-is-coming-up-in-jdk-7/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 03:13:07 +0000</pubDate>
		<dc:creator>Vinay</dc:creator>
				<category><![CDATA[Programming / tutorials]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdk 7]]></category>

		<guid isPermaLink="false">http://www.skill-guru.com/blog/?p=2839</guid>
		<description><![CDATA[JDK 7 which is scheduled to be release in 2011, has some new features which should make programming fun. One of them is dynamically typed language . The JSR 292 new method invocation mode : invokedynamic. With that new bytecode keyword, we can call method only known at runtime.
A new package java.dyn that will use [...]]]></description>
			<content:encoded><![CDATA[<p>JDK 7 which is scheduled to be release in 2011, has some new features which should make programming fun. One of them is dynamically typed language . The JSR 292 new method invocation mode : invokedynamic. With that new bytecode keyword, we can call method only known at runtime.</p>
<p>A new package java.dyn that will use this new functionality. That package will improve the performances of Java reflection and mainly the performances of the others languages that run in the JVM.</p>
<p>Then there is a new class <a href="http://download.java.net/jdk7/docs/api/java/util/Objects.html" target="_blank">java.util.Objects</a>. This class contains 9 static methods to work on Objects.</p>
<p>See the complete list of <a href="http://openjdk.java.net/projects/jdk7/features/">JDK 7 features</a></p>
<p>There is a post by Arun, <a href="http://aruld.info/rest-of-project-coin-explored-advantage-java-7/">Advantages of Java 7</a>- Project Coin</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skill-guru.com/blog/2010/10/20/what-is-coming-up-in-jdk-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

