Re: primitive as part of an object or not ?

From: Chris Smith (cdsmith_at_twu.net)
Date: 11/28/03


Date: Fri, 28 Nov 2003 10:03:34 -0700

Roedy Green wrote:
> On Thu, 27 Nov 2003 23:40:42 +0100, Michiel de Roo
> <michiel@mderooPUNTNL> wrote or quoted :
>
> >In Java, is it possible to have a primitive variable, that is not part of
> >any object ?
>
> of course, unless you consider the class object an object.

Even if you did, you couldn't reasonably call static or local variables
members of the class object. In fact, even local variables of instance
methods can't really be said to belong to the instance, so they aren't
part of an object either, as you imply later in your post.

-- 
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation


Relevant Pages

  • How to use java class object in ASP.NET?
    ... I have to translate an ASP project to ASP.NET, in the former project, a java ... the object "ccb.pub.RSAsig" is a java class object registered by ... object Obj not include the method generateKeys, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: static and threads
    ... > In that language classes are full objects ... In Java this is feels somewhat squishy. ... You have the static fields which are a bit like instance ... variables of a class object. ...
    (comp.lang.java.programmer)
  • Re: Can a class accept a message?
    ... In Java, classes can accept messages, for reasonable definitions of the word "message". ... sends the message "getName" to the class object for String. ... One could also call static methods a message that a class will accept. ...
    (comp.lang.java.programmer)
  • Re: How is tag interface functionality implemented in Java continued ...?
    ... "The method clone for class Object performs a specific cloning ... then a CloneNotSupportedException is thrown. ... Java library code how the exception is thrown ?? ... Java standard specifies how it should be implemented. ...
    (comp.lang.java.programmer)