%% Test If java.util.Date Is Java Object
% Create an instance of the Java® Date class.

myDate = java.util.Date;
isjava(myDate)

% myDate is a Java object.
%
% However, myDate is not a MATLAB® object.

isobject(myDate)

% Copyright 2012 The MathWorks, Inc.