<?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: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-2981829508791420217</id><updated>2012-01-21T12:04:34.497+01:00</updated><category term='web application'/><category term='datasource'/><category term='inner class'/><category term='sun certified java programmer exam'/><category term='autoboxing'/><category term='server.xml'/><category term='solution'/><category term='primitive type'/><category term='literal'/><category term='model viewing control'/><category term='instance variable'/><category term='xml configuration file'/><category term='tomcat'/><category term='event'/><category term='last post'/><category term='puzzle'/><category term='static variable'/><category term='jar'/><category term='array'/><category term='string'/><category term='interface'/><category term='design pattern'/><category term='download'/><category term='ejb'/><category term='keyword'/><category term='legal identifier'/><category term='spring'/><category term='deploy error'/><category term='commons dbcp'/><category term='scjp exam'/><category term='image'/><category term='database'/><category term='entitymanager'/><category term='xml'/><category term='abstract'/><category term='hibernate'/><category term='enum'/><category term='java'/><category term='mysql'/><category term='service interface'/><category term='object'/><category term='gui'/><category term='outer class'/><category term='netbeans'/><category term='taskbar'/><category term='static import'/><category term='context.xml'/><category term='mvc'/><category term='protected'/><category term='illegalstateexception'/><category term='strictfp'/><category term='mediator'/><category term='trick'/><category term='jboss'/><category term='final'/><category term='wrapper class'/><category term='connection pool'/><category term='web.xml'/><category term='local variable'/><category term='expert'/><title type='text'>Big Java Blog by szpetip</title><subtitle type='html'>Java Technologies, Java SE, Java EE, Tomcat Application Container, JBoss Application Server, Web Applications, Web Services, Spring Framework, Sun Certified Java Programmer (SCJP) exam.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-1649306553463386847</id><published>2010-07-04T15:50:00.002+02:00</published><updated>2010-07-04T15:57:56.228+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='last post'/><title type='text'>Last post</title><summary type='text'>Unfortunately I'm closing my blog this week. I can't  spend time with posting and Chinese people write junk comments all the time.I have had ~9000 visitor from 111 country all over the world  in the last two year, thanks for it!Bye,...szpetip</summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/1649306553463386847/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=1649306553463386847' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/1649306553463386847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/1649306553463386847'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2010/07/last-post.html' title='Last post'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-7362276067547486794</id><published>2009-07-04T19:36:00.006+02:00</published><updated>2009-07-04T20:15:19.254+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='puzzle'/><category scheme='http://www.blogger.com/atom/ns#' term='string'/><title type='text'>String puzzle</title><summary type='text'>A short, but interesting puzzle.QuestionWhat does the following program print:AnswerWhen you run the code, you get the answer: 2.Why?The compiler translates Unicode escapes into the characters they represent  before it parses the program into tokens, such as strings literals.  As you see, NetBeans IDE doesn't know it, it present the code like a string with a length() method.</summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/7362276067547486794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=7362276067547486794' title='24 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/7362276067547486794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/7362276067547486794'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2009/07/string-puzzle.html' title='String puzzle'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>24</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-1603674740234988912</id><published>2009-05-16T15:06:00.006+02:00</published><updated>2009-05-27T20:24:08.856+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='web.xml'/><category scheme='http://www.blogger.com/atom/ns#' term='netbeans'/><category scheme='http://www.blogger.com/atom/ns#' term='deploy error'/><title type='text'>NetBeans 6.5.1 generates invalid web.xml</title><summary type='text'>If you use NetBeans 6.5.1 and you want to add a new servlet to the project, the IDE generate an invalid web.xml file and you will be not able to deploy the application.The problemIf you try to deploy the web application into an application container, then you get an exception like this:org.apache.catalina.startup.ContextConfig applicationWebConfigSEVERE: Parse error in application web.xml file at</summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/1603674740234988912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=1603674740234988912' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/1603674740234988912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/1603674740234988912'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2009/05/netbeans-651-generate-invalid-webxml.html' title='NetBeans 6.5.1 generates invalid web.xml'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-4965447102110456463</id><published>2009-05-15T19:00:00.003+02:00</published><updated>2009-05-16T15:19:28.779+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web application'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='hibernate'/><category scheme='http://www.blogger.com/atom/ns#' term='commons dbcp'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='context.xml'/><category scheme='http://www.blogger.com/atom/ns#' term='server.xml'/><category scheme='http://www.blogger.com/atom/ns#' term='datasource'/><category scheme='http://www.blogger.com/atom/ns#' term='tomcat'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><category scheme='http://www.blogger.com/atom/ns#' term='connection pool'/><title type='text'>Solve MySQL server drops and close connections in connection pool</title><summary type='text'>If you get "Last packet sent to the server was XX ms ago." error in your application that want to access MySQL database or you want to know, how to create a connection pool using Tomcat server and DataSource then this is your post.Connection pooling with MySQLUsing connection pool is a good way to increase your web application speed. If you create a connection pool in your application, using a </summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/4965447102110456463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=4965447102110456463' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/4965447102110456463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/4965447102110456463'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2009/01/solve-mysql-server-drops-and-close.html' title='Solve MySQL server drops and close connections in connection pool'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-8317824241328749218</id><published>2009-02-03T20:19:00.003+01:00</published><updated>2009-02-03T20:27:34.245+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='static import'/><title type='text'>Did you know: Static import</title><summary type='text'>Static Import is a very simply and unnecessary opportunity in Java.Static Import The static import construct allows unqualified access to static members without inheriting from the type containing the static members.  Instead, the program imports the members, either individually:import static java.lang.Math.PI;or:import static java.lang.Math.*;Once the static members have been imported, they may </summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/8317824241328749218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=8317824241328749218' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/8317824241328749218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/8317824241328749218'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2009/02/did-you-know-static-import.html' title='Did you know: Static import'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-8730337388772597209</id><published>2009-02-02T21:59:00.003+01:00</published><updated>2009-02-02T22:20:19.857+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='puzzle'/><category scheme='http://www.blogger.com/atom/ns#' term='protected'/><category scheme='http://www.blogger.com/atom/ns#' term='trick'/><title type='text'>Protected Access Modifier Facts</title><summary type='text'>I show an interesting example to the protected access modifier.Our first file, Animal.java in package world:01. package world;02. public class Animal {03.     protected int age;04. }Our second file, Animal.java in package africa:01. package africa;02. import world.Animal;03. public class Zebra extends Animal {04.     public void sayAge() {05.         System.out.println("My age is "+age);  //Works</summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/8730337388772597209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=8730337388772597209' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/8730337388772597209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/8730337388772597209'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2009/02/protected-access-modifier-facts.html' title='Protected Access Modifier Facts'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-5057502086587289533</id><published>2008-12-31T20:05:00.006+01:00</published><updated>2008-12-31T21:02:05.394+01:00</updated><title type='text'>Some interesting facts from year 2008</title><summary type='text'>You, visitorsI have had visitors from 73 country. This countries from Google Analytics:HungaryUnited StatesIndiaUnited KingdomFranceGermanyCanadaAustraliaItalyNetherlandsPolandSingaporeSwedenRussiaPhilippinesVenezuelaIsraelTurkeySwitzerlandSpainMexicoNorwayIndonesiaIrelandBelgiumPortugalDenmarkHondurasBrazilGreeceThailandSouth KoreaSouth AfricaArgentinaCzech </summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/5057502086587289533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=5057502086587289533' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/5057502086587289533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/5057502086587289533'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/12/some-interesting-facts-from-year-2008.html' title='Some interesting facts from year 2008'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SVvGdWl-fZI/AAAAAAAAAoU/nCoj5fQiBLw/s72-c/visitor_map.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-5559221941927048623</id><published>2008-11-28T14:23:00.002+01:00</published><updated>2008-11-28T14:31:48.516+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='image'/><category scheme='http://www.blogger.com/atom/ns#' term='solution'/><title type='text'>Show Image In JTable</title><summary type='text'>In this short post I present, how can we put and show images in JTable component.ProblemSometimes we need to put and show images in JTable. A typical situation is when we have a boolean true or false and we don't want to write true/false or yes/no captions.SolutionThe solution is very simply. We have to override thegetColumnClass(int columnIndex)method of TableModel class, like this:       </summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/5559221941927048623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=5559221941927048623' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/5559221941927048623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/5559221941927048623'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/11/show-image-in-jtable.html' title='Show Image In JTable'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-1804748094900162909</id><published>2008-11-25T11:05:00.003+01:00</published><updated>2008-11-25T11:27:23.784+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='ejb'/><category scheme='http://www.blogger.com/atom/ns#' term='solution'/><category scheme='http://www.blogger.com/atom/ns#' term='entitymanager'/><category scheme='http://www.blogger.com/atom/ns#' term='jboss'/><category scheme='http://www.blogger.com/atom/ns#' term='illegalstateexception'/><title type='text'>Solve IllegalStateException: Illegal to call this method from injected, managed EntityManager</title><summary type='text'>ProblemIf we injected an EntityManager into our SessionBean and call the entityManager.getTransaction().begin() method thenIllegalStateException: Illegal to call this method from injected, managed EntityManagerexception is threw.Java Enterprise version: JEE5Used server: JBOSS 5.0.0.RC1EJB version: EJB3Why did this problem occur?We wanted to use User-managed transaction, but this is not supported </summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/1804748094900162909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=1804748094900162909' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/1804748094900162909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/1804748094900162909'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/11/solve-illegalstateexception-illegal-to.html' title='Solve IllegalStateException: Illegal to call this method from injected, managed EntityManager'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-6873656908347674035</id><published>2008-10-25T08:28:00.003+02:00</published><updated>2008-10-25T08:45:20.854+02:00</updated><title type='text'>Big Java Blog is continued</title><summary type='text'>Dear Visitors,unfortunately I did not  have time and energy to write posts in the last weeks. Now I make a promise, I return to blogging.The puzzles, the SCJP Exams and Spring themes will be continued and I try present much more interesting Java technologies.</summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/6873656908347674035/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=6873656908347674035' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/6873656908347674035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/6873656908347674035'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/10/big-java-blog-is-continued.html' title='Big Java Blog is continued'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-5585077615193064416</id><published>2008-08-29T19:54:00.014+02:00</published><updated>2009-02-01T16:03:16.522+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='jar'/><category scheme='http://www.blogger.com/atom/ns#' term='download'/><category scheme='http://www.blogger.com/atom/ns#' term='design pattern'/><category scheme='http://www.blogger.com/atom/ns#' term='trick'/><title type='text'>Load jar files and Java classes dynamically</title><summary type='text'>In this post I present a way to load jar files and Java classes dynamically from java code. It can be very useful, if you want to create module, for example.Design PatternThe solution build up from three part, theLoader - loads and uses the jar files and Java class dynamically,Communication interface(s) - defines the interface, what can be used to communicate the program and the dynamic library,</summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/5585077615193064416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=5585077615193064416' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/5585077615193064416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/5585077615193064416'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/08/load-jar-files-and-java-classes.html' title='Load jar files and Java classes dynamically'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-1151430625783095815</id><published>2008-08-02T12:07:00.009+02:00</published><updated>2008-08-09T12:32:31.150+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='xml configuration file'/><category scheme='http://www.blogger.com/atom/ns#' term='spring'/><category scheme='http://www.blogger.com/atom/ns#' term='xml'/><title type='text'>Spring Framework - XML configuration file - Part I</title><summary type='text'>In this post the Spring framework's XML configuration file is presented. This files are the heart of Spring framework. Understand using these files is very important to understand Spring framework itself.Part I - This part of post is about the XML scheme, the root element, the tags inside the root element and the properties of the &lt;bean/&gt; tag.XML SchemeTo use the XML file with Spring framework, </summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/1151430625783095815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=1151430625783095815' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/1151430625783095815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/1151430625783095815'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/08/spring-framework-xml-configuration-file.html' title='Spring Framework - XML configuration file - Part I'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-874804831794524688</id><published>2008-08-02T12:00:00.001+02:00</published><updated>2008-08-02T12:12:42.852+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='service interface'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='event'/><category scheme='http://www.blogger.com/atom/ns#' term='xml configuration file'/><category scheme='http://www.blogger.com/atom/ns#' term='download'/><category scheme='http://www.blogger.com/atom/ns#' term='spring'/><category scheme='http://www.blogger.com/atom/ns#' term='xml'/><category scheme='http://www.blogger.com/atom/ns#' term='taskbar'/><title type='text'>Spring Framework - First Steps</title><summary type='text'>This post teaches you some useful basic information and function of Spring framework. Writing XML configuration files, wiring beans, loading XMLs, using ApplicationContext. Creating, publishing and listening events are discussed in this post too.TaskbarNotifier example applicationThe functions above are represented through an example application. This application has a GUI frame, where we can </summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/874804831794524688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=874804831794524688' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/874804831794524688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/874804831794524688'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/07/spring-framework-first-steps.html' title='Spring Framework - First Steps'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-337825054883316023</id><published>2008-07-13T08:02:00.006+02:00</published><updated>2008-07-14T12:31:46.235+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='enum'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='array'/><category scheme='http://www.blogger.com/atom/ns#' term='download'/><category scheme='http://www.blogger.com/atom/ns#' term='scjp exam'/><category scheme='http://www.blogger.com/atom/ns#' term='object'/><category scheme='http://www.blogger.com/atom/ns#' term='sun certified java programmer exam'/><title type='text'>SCJP Exam - Objective 1.3 Part II</title><summary type='text'>Develop code that declares, initializes, and uses primitives, arrays, enums, and objects as static, instance, and local variables. Also, use legal identifiers for variable names.Arrays are objects in Java that store multiple variables of the same type.  Arrays can hold either primitives or object references, but the array itself  will always be an object on the heap, even if the array is declared</summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/337825054883316023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=337825054883316023' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/337825054883316023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/337825054883316023'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/07/scjp-exam-objective-13-part-ii.html' title='SCJP Exam - Objective 1.3 Part II'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-2757497552796895917</id><published>2008-07-10T19:57:00.009+02:00</published><updated>2008-07-11T20:18:20.257+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='download'/><category scheme='http://www.blogger.com/atom/ns#' term='spring'/><title type='text'>Spring Framework - Introduction</title><summary type='text'>Spring is an open-source framework, created by Rod Johnson. It was created to address the complexity of enterprise application development. Spring makes it possible to use JavaBeans to achieve things that were previously only possible with EJBs. However, Spring’s  usefulness isn’t limited to server-side development. Any Java application can benefit from Spring in terms of simplicity, testability,</summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/2757497552796895917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=2757497552796895917' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/2757497552796895917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/2757497552796895917'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/07/spring-framework-introduction.html' title='Spring Framework - Introduction'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-5007962398437104061</id><published>2008-07-08T12:22:00.008+02:00</published><updated>2008-07-08T14:14:51.678+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web application'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='download'/><category scheme='http://www.blogger.com/atom/ns#' term='mvc'/><category scheme='http://www.blogger.com/atom/ns#' term='model viewing control'/><category scheme='http://www.blogger.com/atom/ns#' term='tomcat'/><title type='text'>Applying Model Viewing Controller to Java Web Applications Using JSP and Servlet</title><summary type='text'>Model viewing controller is an architectural pattern. We can use to separate the user interface and the business logic. By decoupling models and views, MVC helps to reduce the complexity in architectural design, and to increase flexibility and reuse.It isn't goal of this post to explain the using JSP and Servlet technologies. Maybe in another post I will do it.Participants of the Model Viewing </summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/5007962398437104061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=5007962398437104061' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/5007962398437104061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/5007962398437104061'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/07/applying-model-viewing-controller-to.html' title='Applying Model Viewing Controller to Java Web Applications Using JSP and Servlet'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-6762443312168949407</id><published>2008-07-04T09:36:00.012+02:00</published><updated>2008-07-13T13:52:00.215+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='enum'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='static variable'/><category scheme='http://www.blogger.com/atom/ns#' term='scjp exam'/><category scheme='http://www.blogger.com/atom/ns#' term='legal identifier'/><category scheme='http://www.blogger.com/atom/ns#' term='local variable'/><category scheme='http://www.blogger.com/atom/ns#' term='instance variable'/><category scheme='http://www.blogger.com/atom/ns#' term='sun certified java programmer exam'/><category scheme='http://www.blogger.com/atom/ns#' term='literal'/><title type='text'>SCJP Exam - Objective 1.3 Part I</title><summary type='text'>Develop code that declares, initializes, and uses primitives, arrays, enums, and objects as static, instance, and local variables. Also, use legal identifiers for variable names.Legal identifiersTechnically, legal identifiers must be composed of only Unicode characters,  numbers, currency symbols, and connecting characters (like underscores).Identifiers must start with a letter, a currency </summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/6762443312168949407/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=6762443312168949407' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/6762443312168949407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/6762443312168949407'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/07/scjp-exam-objective-13-part-i.html' title='SCJP Exam - Objective 1.3 Part I'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-1437249787754250936</id><published>2008-07-01T16:39:00.011+02:00</published><updated>2008-07-01T18:38:01.811+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='scjp exam'/><category scheme='http://www.blogger.com/atom/ns#' term='interface'/><category scheme='http://www.blogger.com/atom/ns#' term='sun certified java programmer exam'/><category scheme='http://www.blogger.com/atom/ns#' term='abstract'/><title type='text'>SCJP Exam - Objective 1.2</title><summary type='text'>Develop code that declares an interface. Develop code that implements or extends one or more interfaces. Develop code that declares an abstract class. Develop code that extends an abstract class.Interface declarationThis is discussed in Objective 1.1 - Interface declaration.Do not forget, what is in the Objective 1.1 written about interface declarations.Extend an interface an interface can extend</summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/1437249787754250936/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=1437249787754250936' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/1437249787754250936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/1437249787754250936'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/07/scjp-exam-objective-12.html' title='SCJP Exam - Objective 1.2'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-2912459739776884249</id><published>2008-06-29T16:40:00.003+02:00</published><updated>2008-06-29T17:13:16.922+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='puzzle'/><title type='text'>Java Puzzles</title><summary type='text'>Puzzle 1Given the following code:public class Puzzle 1 {public static void main(String[] args) {boolean b = false;System.out.println("Output - " + ( b ? 1.66 : 2 ));  }}What is the output?If you think, the output is "Output - 2" then you're wrong.The right output is "Output - 2.0" because 1.66 is double, 2 is int so 2 is converted to double.Puzzle 2Given the following code:public class Puzzle2 {</summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/2912459739776884249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=2912459739776884249' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/2912459739776884249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/2912459739776884249'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/06/puzzles.html' title='Java Puzzles'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-6772412098491905224</id><published>2008-06-29T15:00:00.011+02:00</published><updated>2008-07-01T18:14:22.349+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='final'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='strictfp'/><category scheme='http://www.blogger.com/atom/ns#' term='download'/><category scheme='http://www.blogger.com/atom/ns#' term='scjp exam'/><category scheme='http://www.blogger.com/atom/ns#' term='puzzle'/><category scheme='http://www.blogger.com/atom/ns#' term='interface'/><category scheme='http://www.blogger.com/atom/ns#' term='sun certified java programmer exam'/><category scheme='http://www.blogger.com/atom/ns#' term='abstract'/><title type='text'>SCJP Exam - Objective 1.1</title><summary type='text'>Develop code that declares classes (including abstract and all forms of nested classes), interfaces, and enums, and includes the appropriate use of package and import statements (including static imports).Java Source FileSample Java source file:You can download source code here.If the class is part of a package, the package statement must be the first in the source code file.The import statements</summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/6772412098491905224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=6772412098491905224' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/6772412098491905224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/6772412098491905224'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/06/scjp-objective-11.html' title='SCJP Exam - Objective 1.1'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-7044297648080374233</id><published>2008-06-27T12:49:00.013+02:00</published><updated>2008-07-13T13:54:41.726+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='scjp exam'/><category scheme='http://www.blogger.com/atom/ns#' term='sun certified java programmer exam'/><title type='text'>SCJP Exam - Introduction</title><summary type='text'>Sun Certified Programmer for the Java Platform, Standard Edition 6 (CX-310-065)As I promised, I begin my series about the Sun Certified Java Programmer Exam. In my first post I write about the exam and the objectives. The next SCJP posts review the interesting and the dodgy part of the required knowledge to exam.Exam objectives - What should I know?Source: http://www.sun.com/training/catalog/</summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/7044297648080374233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=7044297648080374233' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/7044297648080374233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/7044297648080374233'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/06/scjp-introduction.html' title='SCJP Exam - Introduction'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-7302121344032756184</id><published>2008-06-27T09:50:00.006+02:00</published><updated>2008-06-27T11:00:03.875+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='download'/><category scheme='http://www.blogger.com/atom/ns#' term='gui'/><category scheme='http://www.blogger.com/atom/ns#' term='trick'/><title type='text'>Pop-up Window with Return Value</title><summary type='text'>TrickIn this post a trick is presented: possibility to return object from a pop-up dialog.It can be useful toselect and return an element of list from a pop-up dialogcreate a new object in a pop-up dialog and return itedit an object in a pop-up dialog and return itParticipantsCaller - the place, where the pop-up window is opened and the returned data is processed.Dialog - this is the pop-up </summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/7302121344032756184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=7302121344032756184' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/7302121344032756184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/7302121344032756184'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/06/window-with-return-value.html' title='Pop-up Window with Return Value'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-3255323084791912811</id><published>2008-06-25T19:45:00.009+02:00</published><updated>2008-06-27T10:27:06.404+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='inner class'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='puzzle'/><category scheme='http://www.blogger.com/atom/ns#' term='outer class'/><category scheme='http://www.blogger.com/atom/ns#' term='expert'/><title type='text'>Java Inner Class Expert</title><summary type='text'>Puzzle 1Given the following code:1. class MyOuter {2. private int x = 7;3. class MyInner {4. public void seeOuter() {5. System.out.println("Outer x is " + x);6. }7. }8. }What is happening when we try compile the code?If you think, the output is Compilation fails then you're wrong. Line 5 looks interesting, because a private member is accessed from an inner class.Is it possible?Yes, it is. </summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/3255323084791912811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=3255323084791912811' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/3255323084791912811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/3255323084791912811'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/06/inner-class-expert.html' title='Java Inner Class Expert'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-9213564332814050333</id><published>2008-06-24T12:19:00.004+02:00</published><updated>2008-06-25T21:55:54.163+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='keyword'/><category scheme='http://www.blogger.com/atom/ns#' term='literal'/><title type='text'>Java Keywords or Not?</title><summary type='text'>PuzzleThe question is that, are thenulltruefalsewords keywords in Java or not?The answer is:no, there are not.The null, true and false words are literals, not keywords in Java.</summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/9213564332814050333/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=9213564332814050333' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/9213564332814050333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/9213564332814050333'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/06/keywords-or-not.html' title='Java Keywords or Not?'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-8503418112675413629</id><published>2008-06-24T11:48:00.006+02:00</published><updated>2008-06-27T10:25:14.943+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='wrapper class'/><category scheme='http://www.blogger.com/atom/ns#' term='puzzle'/><category scheme='http://www.blogger.com/atom/ns#' term='autoboxing'/><title type='text'>Java Wrapper Classes, Autoboxing</title><summary type='text'>Puzzle 1Given the following code:...Integer i = new Integer( 1 );System.out.println( ++i );...What is the output?The output is:2This is surprising: How is it possible use ++ operator to objects? The answer is the autoboxing, what is available java 5 and above.What's happening in theSystem.out.println( ++i );line?Java unboxes, increments, reboxes the variable i, this is a good sample to </summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/8503418112675413629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=8503418112675413629' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/8503418112675413629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/8503418112675413629'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/06/wrapper-classes-autoboxing.html' title='Java Wrapper Classes, Autoboxing'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-2972536943623636000</id><published>2008-06-23T14:00:00.024+02:00</published><updated>2008-06-27T10:27:46.470+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='mediator'/><category scheme='http://www.blogger.com/atom/ns#' term='download'/><category scheme='http://www.blogger.com/atom/ns#' term='design pattern'/><category scheme='http://www.blogger.com/atom/ns#' term='gui'/><title type='text'>Mediator Design Patter</title><summary type='text'>I present this post an useful adaptation of Mediator Design Pattern. We need often create GUI forms and of course we want to process the information given by users.Participants of Mediator Design Patter (based on Wikipedia)Mediator - defines the interface for communication between Colleague objects.ConcreteMediator - implements the Mediator interface and coordinates communication between </summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/2972536943623636000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=2972536943623636000' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/2972536943623636000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/2972536943623636000'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/06/mediator-design-patter.html' title='Mediator Design Patter'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2981829508791420217.post-3652027774024256429</id><published>2008-06-21T10:28:00.022+02:00</published><updated>2008-06-27T10:12:17.518+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='puzzle'/><category scheme='http://www.blogger.com/atom/ns#' term='primitive type'/><category scheme='http://www.blogger.com/atom/ns#' term='expert'/><title type='text'>Java Primitives Expert</title><summary type='text'>Puzzle 1Given the following code:1.  public class Example1 {2.         public static void main(String[] args) {3.                 byte b = 1;4.                 b = b + 1;5.                 System.out.println("b: " + b );6.        }7. }What is the result?The result is: Compilation fails.Why?The problem is in the line 4: possible loss of precision.Decimal literals are implicit integers. So the type</summary><link rel='replies' type='application/atom+xml' href='http://bigjavablog.blogspot.com/feeds/3652027774024256429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2981829508791420217&amp;postID=3652027774024256429' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/3652027774024256429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2981829508791420217/posts/default/3652027774024256429'/><link rel='alternate' type='text/html' href='http://bigjavablog.blogspot.com/2008/06/java-primitive-expert.html' title='Java Primitives Expert'/><author><name>Peter Szilagyi</name><uri>http://www.blogger.com/profile/16013151565515738008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://1.bp.blogspot.com/_oGe7Wn8PDeE/SJ1sWN2FVCI/AAAAAAAAAaI/76f_jMa7uHo/s1600-R/brain_tranparent.png'/></author><thr:total>0</thr:total></entry></feed>
