fork(1) download
/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.text.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
	    String strDate = "01/07/1990";
        SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
        Calendar c = Calendar.getInstance();     
        c.setTime(sdf.parse(strDate));
        //aqui está o "pulo do gato"
        System.out.println(new java.sql.Date(c.getTimeInMillis()));
	}
}
Success #stdin #stdout 0.14s 321280KB
stdin
Standard input is empty
stdout
1990-07-01