submited by krishnas on Fri Aug 31st, 2007
java
David Herron wrote a blog post inspired by an old C|NET article from October, 1997, which listed Java as one of 10 technologies at the time that "didn't stand a chance." Herron and the article he references point out that Java has apparently always been dying for quite some time and yet... somehow it keeps thriving. As Herron notes, news of Java's death have been greatly exaggerated....
more »
submited by krishnas on Fri Aug 31st, 2007
java
I'm in the airport, but I wanted to add to the blogs reporting that JRuby 1.0.1 and Jython 2.2 have been released....
more »
submited by krishnas on Fri Aug 31st, 2007
java
Do you ever get the feeling there's something not quite right about Swing threading? John Zukowski puts his finger on it in this article. While tracing Swing's single-threaded event model from Java 1.0 to its origins in the JavaBeans component model and AWT, he reveals an initialization bug in a commonly used start-up pattern....
more »
submited by krishnas on Fri Aug 31st, 2007
java
Average Rating: 1/5 | Rate this item | 1 user has rated this item.
Expertise: Intermediate
Language: Java
August 21, 2007
Convert a java.util.Date Object to a java.sql.Date Object
The following code demonstrates how to convert a java.util.Date object to a java.sql.Date object:
import java.sql.*;
import java.util.*;
public class cs{
public static void main(String[] args)
{
GregorianCalendar date_1=(GregorianCalendar)Calendar.getInstance();
System.out.println(date_1.getTime());
java.sql.Date date_2= new java.sql.Date((date_1.getTime()).getTime
());
System.out.println(date_2);
}
}
Anghel Leonard
If you have a hot tip and we publish it, we'll pay you. However, due to accounting overhead we no longer pay $10 for a single tip submission. You must accumulate 10 acceptable tips to receive payment. Be sure to include a clear explanation of what the technique does and why it's useful. If it includes code, limit it to 20 lines if possible. Submit your tip here.
DevX: Java Zone Browse "Java" Tips Browse All Tips
Browse "SQL" Tips
Was this article useful? Please log in to rate this item.
Don't have a log in? Get one now.
...
more »
submited by krishnas on Fri Aug 31st, 2007
java
Standard Java has some deficiencies that make it less than ideal in the real-time world (see Sidebar 1. What Is Real-Time?). For one, the garbage collector (an internal JVM thread that reclaims old objects to free space on the heap) can run at any time, for any length of time, thereby introducing latency and non-determinism to your application. However, the garbage collector (GC) is not the only culprit in a standard Java application. The just-in-time (JIT) compiler, which optimizes your Java code for the machine it's running on, can be invoked at any time, even for code that has previously been optimized (JIT-compiled)....
more »
submited by krishnas on Fri Aug 31st, 2007
java
The Apache Geronimo team has successfully implemented the exciting new Java™ Platform, Enterprise Edition (Java EE) 5.0 specification. One of the many notable features of Java EE 5 is the new Java Standard Tag Library (JSTL) 1.2 specification. The key to JSTL 1.2 is the unified expression language, which lets you use the best features of JSTL alongside the JavaServer Faces (JSF). In this installment, the renegade covers the importance of JSTL 1.2 by examining the history of Java Web technologies and how the Geronimo team has leveraged the GlassFish JSTL 1.2 implementation to add JSTL 1.2 support to Geronimo....
more »
submited by krishnas on Fri Aug 31st, 2007
java
PHP is a top Web development language, and Java™ technology is popular for business application development. Thus, to use the strengths of each language on the AIX® Version 5.3 operating system, the PHP Java Bridge has been developed. This series shows AIX 5.3 developers how to integrate both PHP and Java technology in their Web application development....
more »
submited by krishnas on Fri Aug 31st, 2007
java
Two new node types have been added to Groovy's SwingBuilder (and as a consequence SwingXBuilder and JideBuilder, if you grab a current snapshot): bind(...) and animate(...). These two features don't add new widgets, but a new orthogonal functionality, namely to update properties as other properties are changed, and to update properties over time....
more »
submited by krishnas on Fri Aug 17th, 2007
java
Since I've been studying the Rails framework, I've had an interest in integration with Java. Yes, JRuby is one possible solution, but if you have some large Java system that you want to integrate with, it' unlikely that you're just going to get the jar files to access that system's APIs. More likely is that system will expose itself as a service, and the service type du jour is REST....
more »
submited by krishnas on Fri Aug 17th, 2007
java java7
I listened to the Drunk and Retired’s Java 7 wishlist podcast this morning and had a few comments. If you haven’t listened to the podcast, then some of this may make no sense… :)...
more »