|
Core Java Interview Questions
2015-04-03 17:38:00 Every year many thousand technocrats choose Java careers across the globe,after formally taking Java training classes,courses and/or Java certifications like SCJP etc.While appearing for technical interviews,these budding Java programmers face variety of technical questions, are asked to write code snippets to prove their mettle in relevant topics of Java.They are not only assessed on language basics but also on their familiarity with Java development tools, optimization of Java code,load tests,securing code through Java obfuscation and more. It is their performance in these interviews which decides their career fate and is highly dependent on to-the-point and not too verbose answers.What prompted me to create a blog on frequently asked and and not so frequently asked tricky Java interview questions? The answer is,as I have been through various technical interviews on Java and related technologies for all my career spent with this fascinating technology so I thought of sharing these...
Java EE Interview Questions
2015-04-02 12:00:00 I hope my post on Java Interview Questions will be doing some good to all my targeted audience on Core Java and in this blog, I have essentially focussed on interview questions in several Java EE technologies(erstwhile J2EE).Apart from Java EE, I will also be covering interview questions on most widely used open source technologies like Struts,Hibernate,Spring and Velocity and more.I have constantly been asked by my readers to put something on personal interview questions, consequently, you may like to read my post on personal interview questions prior talking about Java Enterprise Edition.Sun Microsystems introduced Java EE 5 specification under JSR 244 and the final release was made public on May ,2006.Java EE has become a cornerstone technology for enterprise level web based solution development.It has more than three million downloads and more than twenty six vendors' application servers support this specification.I believe,it is significant to go through an introduction of Ja...
Adam Fulara: java fingerboard master
2008-10-06 19:36:00 News: 06-10-2008: Adam Fulara has created a cool Java game to help you learn guitar necks... I had a go and obviously I was hopeless ;o). Check it out at adams website This is a content summary only. Visit Truth In Shredding to find out more!
Sun suspends NetBeans IDE DVD Starter Kit distribution program
2008-09-17 05:01:00 Sun has suspended their NetBeans IDE DVD Starter Kit distribution program indefinitely. Yes, you read it correctly; they have done it. So many developers used to get most of Sun (free) products through the distribution program. Students with less bandwidth (in some colleges & universities); specially users without Internet access to home computers are fond of this service as NetBeans DVDs are freely delivered to their hands at no cost. According to NetBeans.org; "Since August 30th, 2005, NetBeans.org has shipped more than 225,000 CDs & DVDs to developers around the world through this initiative! During this period, NetBeans has experienced explosive growth as a download, media kit, and a community. To stay ahead of this encouraging trend we are looking into ways to effectively satisfy increasing demand for NetBeans software worldwide."For sure this service played a huge role in helping so many Java developers. Also the program is a good marketing option for NetBeans since Eclipse (t...
SciPhone i68+ FM Java Dual SIM Quad-band PDA Phone - 2 SIMS online simultan
2008-09-13 20:59:00 Price: €120.99 EURThis Sciphone i68+- 3.2" Pure Flat Touch Screen dual SIM PDA phone is unlocked and can be used all over the world with Quad-band!Support Java, with new fashion Shaking function, chaBuy Now
By: padphone
SciPhone i68+ FM Java Dual SIM Quad-band PDA Phone - 2 SIMS online simultan
2008-09-13 20:59:00 Price: €120.99 EURThis Sciphone i68+- 3.2" Pure Flat Touch Screen dual SIM PDA phone is unlocked and can be used all over the world with Quad-band!Support Java, with new fashion Shaking function, chaBuy Now
By: padphone
We-Travel is Java mobile phone navigation system
2008-09-09 23:48:00 We-Travel is a totally free navigation software for java enabled mobile phones, based on map data from Open Street Map.Free Download: here
Lazy loading vs. pre-loading beans with Spring Framework
2008-09-09 14:16:00 Spring framework can instantiate and bind (called loading) related Java objects (called beans) according to a given configuration. An XML file can easily be used to define these bindings. Spring framework supports two different types of loading methods; lazy loading and pre-loading respectively managed by BeanFactory and ApplicationContext containers. Lazy LoadingA bean is loaded only when an instance of that Java class is requested by any other method or a class. org.springframework.beans.facto-ry.BeanFactory (and subclasses) container loads beans lazily. Following code snippet demonstrate lazy loading, concentrate on how "beans.xml" spring configuration file is loaded by BeanFactory container class.BeanFactory factory = new XmlBeanFactory( new InputStreamResource( new FileInputStream("beans.xml-"))); // 1Employee emp = (Employee) factory.getBean("employeeB-ean"); // 2Even though "beans.xml" configur...
[Eclipse] Access restriction: Class is not accessible due to restriction on
2008-09-09 14:00:00 "Access restriction: Class is not accessible due to restriction on required library"; error message may be shown while developing Java projects in Eclipse IDE. Error message is self-explanatory, some classes can not be loaded into the project since restriction rules are being imposed on those classes.How to solveThis error message can be removed by changing a setting inside Eclipse IDE. Open up the dialog box shown below, using any of the following paths.Windows -> Preferences -> Java -> Compiler -> Errors/Warnings(Project) Properties -> Java Compiler -> Errors/WarningsLocate the "Forbidden reference (access rules)" option under "Deprecated and restricted API" section in the dialog box. This option decides how to handle access rules defined inside Eclipse. By default it is set to "Error" which causes Eclipse to complain about references to any restricted classes. Choosing any other option (Warning or Ignore) will remove these error mes...
Curex is a Java application for mobile device
2008-09-06 00:07:00 The Currex midlet is a Java application for mobile devices for currency exchange.This is a development preview only, not even public beta, try it for your own risk!Warning! Currex midlet requires a GPRS, EDGE or similar phone based data connection that offers Internet access.Free Download:Currex128.jar for 128 pixel wide screensCurrex176.jar for 176 pixel wide screensCurrex220.jar for 220 pixel wide screensCurrex240.jar for 240 pixel wide screensCurrex320.jar for 320 pixel wide screens
Weather is a Java application for mobile device
2008-09-03 21:51:00 The Weather midlet is a Java application for mobile devices to check the weather conditions in different locations. Download the new measurement and forecast data any time using the Refresh menu item. There are different views in the Weather midlet and you can change the views with the Up/Down navigation buttons. In the bottom-left corner you'll find the elapsed time from the last data source refresh. It's measured not from the refresh button press on the phone but the refresh of the real computed/measured data on the server. The Autorefresh option makes it possible to refresh the meteorological data automatically in regular intervals.Free Download:Weather128.jar for 128 pixel wide screensWeather176.jar for 176 pixel wide screensWeather220.jar for 220 pixel wide screensWeather240.jar for 240 pixel wide screensWeather320.jar for 320 pixel wide screensWeather96.jar for 96 pixel wide screens
Better use
2008-09-03 13:42:00 Spring configuration xml is used for defining the wiring between different object. It has the following format. <beans> <bean id=".." class="..."> ... </bean> ...<beans>Classes specified in the configuration file will be instantiated by Spring container. And those objects will be bound with each other accordingly. Any java class specified under attribute named "class" will be instantiated. There is no much limitations on the classes that can be used for this here. It does not need to be a JavaBean. It can be any POJO (plan old java object). The only requirement is that this class must be possible to instantiate.So why does this tags are named <beans> and <bean>? This seems to be misleading.In Spring one way of binding objects is using the beaness of java classes. But that is not that only way to bind them together, constructor can be used to bind objects. So if configuration file used tags as follows, it would be more mea...
Google Web Toolkit (GWT) & Servlets - Web application tutorial
2008-09-02 14:20:00 Google Web Toolkit (GWT) and Java Servlets used in one web application. This tutorial will take you though the steps of developing a simple web application with Google Web Toolkit and J2EE Servlet Technology. The application will have a servlet on server side and one web page.PrerequisitesBetter to be familiar with developing web applications with J2EE/ServletsKnowledge on deploying a web application into Tomcat web serverSystem RequirementsJDK installedApache Tomcat web server (download, any other web server can be used)GWT (download)In brief, GWT is a framework for developing Ajax based web pages with Java. All the HTML page content will be written as Java classes and converted into a set of Javascript files. For more information on GWT, refer to official site here. http://code.google.com/webtoolk-it/IntroductionIn this tutorial we will create a simple web application which has one page. When a user clicks a button, web page content will be updated without refreshing or leaving th...
Google Chrome beta
2008-09-01 11:20:00 Google announced today that they would be releasing a new open source web browser called Google Chrome. The new browser will be available for download as a beta starting tomorrow. Google states that the reason for a new web browser is that the company believes that it “can add value for users and, at the ...
Free Java Games for Nokia
2008-08-29 21:28:00 In here, we'll be posting sources for free Java Games for your Nokia phone. This includes Nokia 6233, 6234, 6280, 6010, 6630, 6060, 6030, 6085, 6015i, 6016i, 6019i, 6020, 6021, 6070, 6085, 6086, 6100, 6101, 6102, 6202i, 6103, 6108, 6111, 6120, 6125, 6126, 6131, 6133, 6136, 6135, 6155i, 6165i, 6170, 6175i, 6200, 6215i, 6220, 6225, 6230, 6230i, 6235, 6800, 6880, 7210, 7250, 7250i, 7360, 7370, 7380, 7600, 7610, 7650, 7710, 7900, 8265, 8265i, 8390, 8600, 8800, 8801, 8890, 9300, 9500, E50, E51, E60, E61, E62, E65, E70, E90, N70, N73, N75, N76, N78, N770, N78, N80, N81, N82, N90, N91, N93, N93i, N95, N95 8GB, N96, NGage, NGage QD and many other Nokia phone models.These are just the phone models that I remembered and can run Java games. Here are some links wherein you can get free Java games. More to come soon!1. Free Java Games for your Nokia Phone
By: Jehzlau Concepts
KD Player for Java phones
2008-08-25 20:37:00 KD Player is a free media player for mobile phones with java support.Features:Support for ID3-tagCreating and editing own MP3Sort tracks on album, by performer, song nameFree Download: KD_Player_240x320_EN.jarKD_Play-er_208x208_EN.jarKD_Player_176x-220_EN.jarKD_Player_128x160_EN.-jar
Write Java with JDK 1.5 features and run on JRE 1.4
2008-08-06 14:33:00 Have you being writing your Java code on Java 1.5 (JDK 1.5) with new features like auto boxing, generics and enums? And suddenly realized that your customer's servers are still using Java 1.4 (JRE 1.4)? This is not a surprise since most of the customers are not in a position to take a risk and try the newer versions as they are running live/online businesses. But as professionals in the software development field, we have to move with the latest/stable versions available in the market. That's where the conflict occurs.Now you must deploy your Java 1.5 codes into a 1.4 Java runtime environment (even may be 1.3 or 1.2). Even if the Java code has not used any of the new features of Java 1.5, you still can not run your code in 1.4 JRE as the runtime throws an error saying "java.lang.UnsupportedClassVers-ionError".Compile 1.5 codes for 1.4 JVMJava compiler provides an option to specify the target JVM of the generated classes like 1.5, 1.4, and 1.3 as follows.public class MyClass { pu...
Write Java with JDK 1.5 features and run on JRE 1.4
2008-08-06 14:33:00 Have you being writing your Java code on Java 1.5 (JDK 1.5) with new features like auto boxing, generics and enums? And suddenly realized that your customer's servers are still using Java 1.4 (JRE 1.4)? This is not a surprise since most of the customers are not in a position to take a risk and try the newer versions as they are running live/online businesses. But as professionals in the software development field, we have to move with the latest/stable versions available in the market. That's where the conflict occurs.Now you must deploy your Java 1.5 codes into a 1.4 Java runtime environment (even may be 1.3 or 1.2). Even if the Java code has not used any of the new features of Java 1.5, you still can not run your code in 1.4 JRE as the runtime throws an error saying "java.lang.UnsupportedClassVers-ionError".Compile 1.5 codes for 1.4 JVMJava compiler provides an option to specify the target JVM of the generated classes like 1.5, 1.4, and 1.3 as follows.public class MyClass { pu...
Write Java with JDK 1.5 features and run on JRE 1.4
2008-08-06 14:33:00 Have you being writing your Java code on Java 1.5 (JDK 1.5) with new features like auto boxing, generics and enums? And suddenly realized that your customer's servers are still using Java 1.4 (JRE 1.4)? This is not a surprise since most of the customers are not in a position to take a risk and try the newer versions as they are running live/online businesses. But as professionals in the software development field, we have to move with the latest/stable versions available in the market. That's where the conflict occurs.Now you must deploy your Java 1.5 codes into a 1.4 Java runtime environment (even may be 1.3 or 1.2). Even if the Java code has not used any of the new features of Java 1.5, you still can not run your code in 1.4 JRE as the runtime throws an error saying "java.lang.UnsupportedClassVers-ionError".Compile 1.5 codes for 1.4 JVMJava compiler provides an option to specify the target JVM of the generated classes like 1.5, 1.4, and 1.3 as follows.public class MyClass { pu...
aED-DLoader for Mobile Java phones
2008-08-02 13:25:00 aED-DLoader - it is a Download Manager built for for mobile phones it has special features in downloading file directly from file hosting sites like Rapidshare.com, Mediafire.com, Plunder.com and 4Shared.com.More Info - Built using JAVA thus can work with any java enabled mobile phones, can pause and resume downloads(if server supports resuming of downloads).Tested on - N73, N95, N82, N70, 6600, 6300, N76, N80 and many more....Free Download: aED-DLoader v4.5.5.jarvia: rodrigostoledo.com
Java: Numbers only String by removing non numeric characters
2008-07-31 14:05:00 With Java, deleting non numeric characters (letters, symbols etc) from a string to produce a numbers-only String is a common requirement in web applications, as application users are used to insert numeric values with non-numeric characters. For example a phone number will be entered with (-) characters like;650-212-5710. A price value may be entered with (,) characters like;12,500.00In Java, java.lang.Character class has a method; isDigit() which can be used to identify whether a character is a digit or not. Following method can be used for extracting a numbers-only string.public static String getOnlyNumerics(String str) { if (str == null) { return null; } StringBuffer strBuff = new StringBuffer(); char c; for (int i = 0; i < str.length() ; i++) { c = str.charAt(i); if (Character.isDigit(c)) { strBuff.append(c); } } return strBuff.toString();}Calling above method with any String will return a numbers-onl...
Java: Numbers only String by removing non numeric characters
2008-07-31 14:05:00 With Java, deleting non numeric characters (letters, symbols etc) from a string to produce a numbers-only String is a common requirement in web applications, as application users are used to insert numeric values with non-numeric characters. For example a phone number will be entered with (-) characters like;650-212-5710. A price value may be entered with (,) characters like;12,500.00In Java, java.lang.Character class has a method; isDigit() which can be used to identify whether a character is a digit or not. Following method can be used for extracting a numbers-only string.public static String getOnlyNumerics(String str) { if (str == null) { return null; } StringBuffer strBuff = new StringBuffer(); char c; for (int i = 0; i < str.length() ; i++) { c = str.charAt(i); if (Character.isDigit(c)) { strBuff.append(c); } } return strBuff.toString();}Calling above method with any String will return a numbers-onl...
Java: Numbers only String by removing non numeric characters
2008-07-31 14:05:00 With Java, deleting non numeric characters (letters, symbols etc) from a string to produce a numbers-only String is a common requirement in web applications, as application users are used to insert numeric values with non-numeric characters. For example a phone number will be entered with (-) characters like;650-212-5710. A price value may be entered with (,) characters like;12,500.00In Java, java.lang.Character class has a method; isDigit() which can be used to identify whether a character is a digit or not. Following method can be used for extracting a numbers-only string.public static String getOnlyNumerics(String str) { if (str == null) { return null; } StringBuffer strBuff = new StringBuffer(); char c; for (int i = 0; i < str.length() ; i++) { c = str.charAt(i); if (Character.isDigit(c)) { strBuff.append(c); } } return strBuff.toString();}Calling above method with any String will return a numbers-onl...
How to open a .war (web archive) or .jar (java archive) files
2008-07-30 14:14:00 With Java we generate .JAR files to bundle a set of resources. For J2EE web applications, we generate .WAR (Web Archive) files for deployments. Both of these are ways of archiving a set of files.Both these .jar or .war archives are in zip format. So there are plenty of ways to open those files to read the content. One way would be to use any tool that you use to open/extract a .zip file. Next will be to use the Jar command itself.JAR CommandJAR (command) utility in Java can be used to open/extract these files as follows. Run following command from the folder where you need the content to be extracted by providing the path to the archive.jar xf <path-to-file>options:x - extract the filesf - file to extractjar xf myWebApp.warjar xf myProject.jarRelated : Open and read a file inside a war file of a web application with Java
How to open a .war (web archive) or .jar (java archive) files
2008-07-30 14:14:00 With Java we generate .JAR files to bundle a set of resources. For J2EE web applications, we generate .WAR (Web Archive) files for deployments. Both of these are ways of archiving a set of files.Both these .jar or .war archives are in zip format. So there are plenty of ways to open those files to read the content. One way would be to use any tool that you use to open/extract a .zip file. Next will be to use the Jar command itself.JAR CommandJAR (command) utility in Java can be used to open/extract these files as follows. Run following command from the folder where you need the content to be extracted by providing the path to the archive.jar xf <path-to-file>options:x - extract the filesf - file to extractjar xf myWebApp.warjar xf myProject.jarRelated : Open and read a file inside a war file of a web application with Java
How to open a .war (web archive) or .jar (java archive) files
2008-07-30 14:14:00 With Java we generate .JAR files to bundle a set of resources. For J2EE web applications, we generate .WAR (Web Archive) files for deployments. Both of these are ways of archiving a set of files.Both these .jar or .war archives are in zip format. So there are plenty of ways to open those files to read the content. One way would be to use any tool that you use to open/extract a .zip file. Next will be to use the Jar command itself.JAR CommandJAR (command) utility in Java can be used to open/extract these files as follows. Run following command from the folder where you need the content to be extracted by providing the path to the archive.jar xf <path-to-file>options:x - extract the filesf - file to extractjar xf myWebApp.warjar xf myProject.jarRelated : Open and read a file inside a war file of a web application with JavaHome
Web Services with Apache Axis 1.4 Tutorial: server and client sides
2008-07-29 14:21:00 Web services are a handy method of integrating independent systems. Apache Axis is one of the best free tools available for implementing and deploying web services, and also for implementing the web service clients.In this article we will create a simple, but complete web service and a client for this service step-by-step. Article will be explanatory as much as possible to succeed you in implementing it yourself alone after completing this tutorial.PrerequisitesMust be familiar with JavaFamiliar with basics on a web server like TomcatSome knowledge in configuring Axis will be an added advantageSystem Configuration RequirementsWe will be discussing the configuration in brief as our scope is mainly on web services. (If Axis already configured, jump to implementation). If you find any issues on the configuration part, you can refer to Apache Axis site for troubleshooting. (But if you can not solve it yourself do not worry, post the issue under the comments section in this article, and ...
Web Services with Apache Axis 1.4 Tutorial: server and client sides
2008-07-29 14:21:00 Web services are a handy method of integrating independent systems. Apache Axis is one of the best free tools available for implementing and deploying web services, and also for implementing the web service clients.In this article we will create a simple, but complete web service and a client for this service step-by-step. Article will be explanatory as much as possible to succeed you in implementing it yourself alone after completing this tutorial.PrerequisitesMust be familiar with JavaFamiliar with basics on a web server like TomcatSome knowledge in configuring Axis will be an added advantageSystem Configuration RequirementsWe will be discussing the configuration in brief as our scope is mainly on web services. (If Axis already configured, jump to implementation). If you find any issues on the configuration part, you can refer to Apache Axis site for troubleshooting. (But if you can not solve it yourself do not worry, post the issue under the comments section in this article, and ...
Web Services with Apache Axis 1.4 Tutorial: server and client sides
2008-07-29 14:21:00 Web services are a handy method of integrating independent systems. Apache Axis is one of the best free tools available for implementing and deploying web services, and also for implementing the web service clients.In this article we will create a simple, but complete web service and a client for this service step-by-step. Article will be explanatory as much as possible to succeed you in implementing it yourself alone after completing this tutorial.PrerequisitesMust be familiar with JavaFamiliar with basics on a web server like TomcatSome knowledge in configuring Axis will be an added advantageSystem Configuration RequirementsWe will be discussing the configuration in brief as our scope is mainly on web services. (If Axis already configured, jump to implementation). If you find any issues on the configuration part, you can refer to Apache Axis site for troubleshooting. (But if you can not solve it yourself do not worry, post the issue under the comments section in this article, and ...
UFO Sighting in Surabaya, East Java. Not.
2008-07-26 11:24:00 UFO sighting in Surabaya, East Java. [[ Click title to read the rest of this entry. ]]
Java2WDSL & WSDL2Java - java.util.Date not handled consistently
2008-07-16 14:28:00 Java2WSDL and WSDL2Java tools in Axis (1.4) are pretty handy tools. Those help you to generate a WSDL from a java class as well as generating stubs/skeletons from a WSDL. But if you are dealing with java.util.Date fields in your code, you must pay some attention.Java2WSDLConsider the following java interface which uses java.util.Date as a return type as well as a method parameter.public interface MyService { public java.util.Date getNextDate(); public void updateLastRun(java.util.Date date);}When the Java2WDSL tool generates a WSDL for a class with a Date field, it will represent java.util.Date fields as dateTime fields in WSDL. The generated WSDL file would look as follows.<?xml version="1.0" encoding="UTF-8"?><wsdl:d-efinitions targetNamespace="http://service-" xmlns:apachesoap="http://xml.ap-ache.org/xml-soap" xmlns:impl="http://service" xmlns:intf="http://service" xmlns:soapenc="http://schemas.x-mlsoap.org/soap/encoding/" xmlns:wsdl="h...
Java2WDSL & WSDL2Java - java.util.Date not handled consistently
2008-07-16 14:28:00 Java2WSDL and WSDL2Java tools in Axis (1.4) are pretty handy tools. Those help you to generate a WSDL from a java class as well as generating stubs/skeletons from a WSDL. But if you are dealing with java.util.Date fields in your code, you must pay some attention.Java2WSDLConsider the following java interface which uses java.util.Date as a return type as well as a method parameter.public interface MyService { public java.util.Date getNextDate(); public void updateLastRun(java.util.Date date);}When the Java2WDSL tool generates a WSDL for a class with a Date field, it will represent java.util.Date fields as dateTime fields in WSDL. The generated WSDL file would look as follows.<?xml version="1.0" encoding="UTF-8"?><wsdl:d-efinitions targetNamespace="http://service-" xmlns:apachesoap="http://xml.ap-ache.org/xml-soap" xmlns:impl="http://service" xmlns:intf="http://service" xmlns:soapenc="http://schemas.x-mlsoap.org/soap/encoding/" xmlns:wsdl="h...
Java2WDSL & WSDL2Java - java.util.Date not handled consistently
2008-07-16 07:28:00 Java2WSDL and WSDL2Java tools in Axis (1.4) are pretty handy tools. Those help you to generate a WSDL from a java class as well as generating stubs/skeletons from a WSDL. But if you are dealing with java.util.Date fields in your code, you must pay some attention.Java2WSDLConsider the following java interface which uses java.util.Date as a return type as well as a method parameter.public interface MyService { public java.util.Date getNextDate(); public void updateLastRun(java.util.Date date);}When the Java2WDSL tool generates a WSDL for a class with a Date field, it will represent java.util.Date fields as dateTime fields in WSDL. The generated WSDL file would look as follows.<?xml version="1.0" encoding="UTF-8"?><wsdl:d-efinitions targetNamespace="http://service-" xmlns:apachesoap="http://xml.ap-ache.org/xml-soap" xmlns:impl="http://service" xmlns:intf="http://service" xmlns:soapenc="http://schemas.x-mlsoap.org/soap/encoding/" xmlns:wsdl="h...
Mt. Bromo & Semeru, A Spectacular Volcanic Landscape in East Java
2008-07-12 19:15:00 The Bromo Tengger Semeru National Park covers some 800 square kilometers in the centre of East Java. It is the largest volcanic region in the province and there stands Mt. Semeru, which rises 3676 meters above sea level. At its northern end is the spectacular Tengger Caldera, Java's largest, with its 10 km barren desert-like sea of sand. Within the caldera rise the deeply fissured volcanic cones of Batok and Bromo, the latter is still active with a cavernous crater from which smoke blows skyward. Temperatures at the top of mount Bromo range about 5 to 18 degrees Celcius . To the south is a rolling upland plateau dissected by valleys and dotted with several small scenic lakes, extending to the foot of Mount Semeru, a towering grey forest-skirted cone dominating the southern landscape.Tengger sandy area has been protected since 1919, and its believed to be the only conservation area in Indonesia, even probably in the world possessing a unique ocean and sand at the attitude about 2...
By: Fadliwae.web.id
Java Sorting: Comparator vs Comparable Tutorial
2008-07-10 15:11:00 Java Comparators and Comparables? What are they? How do we use them? This is a question we received from one of our readers. This article will discuss the java.lang.Comparator and java.lang.Comparable in details with a set of sample codes for further clarifications.PrerequisitesBas-ic Java knowledgeSystem RequirementsJDK installedWhat are Java Comparators and Comparables?As both names suggest (and you may have guessed), these are used for comparing objects in Java. Using these concepts; Java objects can be sorted according to a predefined order.Two of these concepts can be explained as follows.ComparableA comparable object is capable of comparing itself with another object. The class itself must implements the java.lang.Comparable interface in order to be able to compare its instances.ComparatorA comparator object is capable of comparing two different objects. The class is not comparing its instances, but some other class?s instances. This comparator class must implement the java.lan...
Java Sorting: Comparator vs Comparable Tutorial
2008-07-10 15:11:00 Java Comparators and Comparables? What are they? How do we use them? This is a question we received from one of our readers. This article will discuss the java.lang.Comparator and java.lang.Comparable in details with a set of sample codes for further clarifications.PrerequisitesBas-ic Java knowledgeSystem RequirementsJDK installedWhat are Java Comparators and Comparables?As both names suggest (and you may have guessed), these are used for comparing objects in Java. Using these concepts; Java objects can be sorted according to a predefined order.Two of these concepts can be explained as follows.ComparableA comparable object is capable of comparing itself with another object. The class itself must implements the java.lang.Comparable interface in order to be able to compare its instances.ComparatorA comparator object is capable of comparing two different objects. The class is not comparing its instances, but some other class?s instances. This comparator class must implement the java.lan...
Java Sorting: Comparator vs Comparable Tutorial
2008-07-10 08:11:00 Java Comparators and Comparables? What are they? How do we use them? This is a question we received from one of our readers. This article will discuss the java.lang.Comparator and java.lang.Comparable in details with a set of sample codes for further clarifications.PrerequisitesBas-ic Java knowledgeSystem RequirementsJDK installedWhat are Java Comparators and Comparables?As both names suggest (and you may have guessed), these are used for comparing objects in Java. Using these concepts; Java objects can be sorted according to a predefined order.Two of these concepts can be explained as follows.ComparableA comparable object is capable of comparing itself with another object. The class itself must implements the java.lang.Comparable interface in order to be able to compare its instances.ComparatorA comparator object is capable of comparing two different objects. The class is not comparing its instances, but some other class?s instances. This comparator class must implement the java.lan...
Ktech E98 Dual SIM TV IPTV NES Games PDA Phone - JAVA,CD included,Dual Keyb
2008-07-01 19:17:00 Price: €120.99 EURThis E98 NES Games TV FM Slide PDA phone is unlocked and can be used in UK, Europe and Australia.This is the latest 3.0" touch screen NES Game TV IPTV Dual SIMS Qwerty PDA phone,FM Radio. AlBuy Now
By: padphone
Ktech E98 Dual SIM TV IPTV NES Games PDA Phone - JAVA,CD included,Dual Keyb
2008-07-01 19:17:00 Price: €120.99 EURThis E98 NES Games TV FM Slide PDA phone is unlocked and can be used in UK, Europe and Australia.This is the latest 3.0" touch screen NES Game TV IPTV Dual SIMS Qwerty PDA phone,FM Radio. AlBuy Now
By: padphone
CCNA & JAVA! Which one Steady degree of work ?
2008-06-27 02:02:00 Could you tell me CCNA and JAVA steady degree relatively high for the working outlet after? Will the work be easy to look for in the society? Working nature and welfare of type this generally come to say it can be good? How should plan the future?
Change Apache Tomcat port 8080 to 80 or another port number
2008-06-17 14:24:00 Change Apache Tomcat port 8080 to 80 or another port number. Whether it is Apache Tomcat 5 or Tomcat 6, by default Apache Tomcat runs on port 8080. But there can be situations where there are some other servers running on this same port forcing you to change the port of one of the servers. This article explains how to change this port 8080 on Tomcat (we tested this against Apache Tomcat 5.5 and 6.0 versions).Here we?ll be using label to denote the folder where Tomcat is installed. In our systems, tomcat is installed in the following path.=C:JavaTomcat_x.xWe need to edit the file named server.xml inside conf folder.In the server.xml file; locate the following segment.<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --><Connector port="8080" ? />By changing this 8080 value of port attribute, server would start listening on new port number.<Connector port="8081" ? />After saving the changed server.xml file, Tomcat server must be restarted (stop then start) to...
Change Apache Tomcat port 8080 to 80 or another port number
2008-06-17 14:24:00 Change Apache Tomcat port 8080 to 80 or another port number. Whether it is Apache Tomcat 5 or Tomcat 6, by default Apache Tomcat runs on port 8080. But there can be situations where there are some other servers running on this same port forcing you to change the port of one of the servers. This article explains how to change this port 8080 on Tomcat (we tested this against Apache Tomcat 5.5 and 6.0 versions).Here we?ll be using label to denote the folder where Tomcat is installed. In our systems, tomcat is installed in the following path.=C:JavaTomcat_x.xWe need to edit the file named server.xml inside conf folder.In the server.xml file; locate the following segment.<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --><Connector port="8080" ? />By changing this 8080 value of port attribute, server would start listening on new port number.<Connector port="8081" ? />After saving the changed server.xml file, Tomcat server must be restarted (stop then start) to...
Change Apache Tomcat port 8080 to 80 or another port number
2008-06-17 07:24:00 Change Apache Tomcat port 8080 to 80 or another port number. Whether it is Apache Tomcat 5 or Tomcat 6, by default Apache Tomcat runs on port 8080. But there can be situations where there are some other servers running on this same port forcing you to change the port of one of the servers. This article explains how to change this port 8080 on Tomcat (we tested this against Apache Tomcat 5.5 and 6.0 versions).Here we?ll be using label to denote the folder where Tomcat is installed. In our systems, tomcat is installed in the following path.=C:JavaTomcat_x.xWe need to edit the file named server.xml inside conf folder.In the server.xml file; locate the following segment.<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --><Connector port="8080" ? />By changing this 8080 value of port attribute, server would start listening on new port number.<Connector port="8081" ? />After saving the changed server.xml file, Tomcat server must be restarted (stop then start) to...
Online Casino (Slots & Roulette) by Scepterw
2008-06-10 01:50:00 I am looking for an experienced online casino gaming developer. Of particular interest is slots (3-5 reel, multi-line) and roulette. The site must be aesthetically pleasing, easy to use, and have a fully functional back-end for managing credits... (Budget: $1500-3000, Jobs: Flash, Java, PHP, Python, Ruby/Ruby on Rails)
JavaRa: Cancella le vecchie installazioni Java
2008-06-09 20:26:00 Con JavaRa possiamo pulire il nostro sistema dai residui delle vecchie installazioni della console Java che ogni pc ha per far girare i cosiddetti “applet” che si trovano molto spesso in pagine web , liberando cosė spazio e pulendo al meglio il sistema. Il problema dell’applicazione Java č che ogni volta che si aggiorna lascia installata ...
By: PC Revenge
Stealing Password Hashes with Java and IE
2008-06-09 13:34:00 OK, I read a lot, I mean a lot on a regular basis. There is a lot of tripe floating about the tubes of the internet and I’m always pleased to read a new posting from several folks who buck that trend. Among which I count John Heasman. He has a great new post on ...
Creating a Simple HTML Form Validation System Using JavaScript
2008-06-09 07:43:00 OK, so today we are going to create a simple Form Validator Script using JavaScript that would not let a HTML form be submitted unless all required field are filled in. JavaScript is widely used for this purpose as it does not need server processing hence no form sending and pageload is required. When you are using data submission via form on your website there are a few other methods that you can employ other than JavaScript; first, not to use validation at all (NOT RECOMMENDED), second, to use validation in the script and make it show appropriate message (need pageload). So definitely we’ll be using JavaScript and you should in most cases, too. Let’s kick off guys! Now before we begin I want to tell you one thing, we will only be checking (validating) if all the required fields are filled or not and NOT whether what is filled in is acceptable. Of course we can use JavaScript to validate whether, let’s say the filled email address is ...
Nonpublic project #272170 by Vactor
2008-06-09 02:09:00 The project is Nonpublic. Description can be read only by registered users. (Budget: $30-250)
Kicking Butt with MIDP and MSA: Creating Great Mobile Applications
2008-06-08 02:59:00 The release of MIDP 2.0 and the introduction of the new Mobile Service Architecture (MSA) are generating momentum for the Java ME platform. As more and more Java-enabled mobile devices become available and more service providers become open to third-party development, the demand for customized applications will grow dramatically. Now, there's a practical, realistic guide to building MIDP 2.0/MSA applications that are robust, responsive, maintainable, and fun.Long-time Java ME author Jonathan Knudsen offers real solutions for the complex challenges of coding efficiency, application design, and usability in constrained mobile environments. Experienced Java developers will master MIDP 2.0 and MSA programming through clear, carefully designed examples. Downloadable code is available for both NetBeans Mobility Pack and the Sun Java Wireless Toolkit. Kicking Butt with MIDP and MSA's wide-ranging content covers:Pushing MIDP's limits, and exploiting MSA's full powerUsing MIDlets, Forms,...
Is JavaScript more object-oriented than other programming languages?
2008-06-07 10:11:00 Like this post? Publish It On Your Own Blog I started my career as a web developer before the dot.com crash. I learnt all about HTML, IIS, ASP, SQL Server and JavaScript. Equipped with the knowledge I built a few dynamic websites and carried my laptop with me to all my interviews and walked ... |



