Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #31662

Re: how does a marker interface give specific instruction to jvm(java internals)

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Jeff Higgins <jeff@invalid.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: how does a marker interface give specific instruction to jvm(java internals)
Date Sun, 10 May 2015 07:41:56 -0400
Organization A noiseless patient Spider
Lines 7
Message-ID <ming7f$2vm$1@dont-email.me> (permalink)
References <fb878f12-cf37-4889-9e38-91ed3a590af6@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Sun, 10 May 2015 11:42:39 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="8e164d158183579609bf09837dee5210"; logging-data="3062"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6N8JFev2J9j4HANbrpClbTDJS0MIAn5g="
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0
In-Reply-To <fb878f12-cf37-4889-9e38-91ed3a590af6@googlegroups.com>
Cancel-Lock sha1:T4wAGVVgzQZXeC8BJHszRHDmGek=
Xref csiph.com comp.lang.java.programmer:31662

Show key headers only | View raw


On 05/10/2015 06:08 AM, Ajay Paul wrote:
> For example if I implement Serializable for a class, it will give specific instruction to jvm that this class needs to be treated differently. Initially I thought that there might be a native method call inside this interface however when I see the Serializable.java source code, there is none.
>
> How does declaring a class Serializable or clonable enable it to be treated differently.
>
<http://docs.oracle.com/javase/8/docs/platform/serialization/spec/serialTOC.html>

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

how does a marker interface give specific instruction to jvm(java internals) Ajay Paul <ajaykpaul@gmail.com> - 2015-05-10 03:08 -0700
  Re: how does a marker interface give specific instruction to jvm(java internals) Jeff Higgins <jeff@invalid.invalid> - 2015-05-10 07:41 -0400
  Re: how does a marker interface give specific instruction to jvm(java internals) Joerg Meier <joergmmeier@arcor.de> - 2015-05-10 14:00 +0200
    Re: how does a marker interface give specific instruction to jvm(java internals) Arne Vajhøj <arne@vajhoej.dk> - 2015-06-03 21:49 -0400
  Re: how does a marker interface give specific instruction to jvm(java internals) Ajay Paul <ajaykpaul@gmail.com> - 2015-05-12 08:54 -0700
    Re: how does a marker interface give specific instruction to jvm(java internals) Robert Klemme <shortcutter@googlemail.com> - 2015-05-12 18:53 +0200
    Re: how does a marker interface give specific instruction to jvm(java internals) Jeff Higgins <jeff@invalid.invalid> - 2015-05-12 19:07 -0400
      Re: how does a marker interface give specific instruction to jvm(java   internals) Robert Klemme <shortcutter@googlemail.com> - 2015-05-14 00:14 +0200
    Re: how does a marker interface give specific instruction to jvm(java internals) Jeff Higgins <jeff@invalid.invalid> - 2015-05-12 21:34 -0400
      Re: how does a marker interface give specific instruction to jvm(java internals) Arne Vajhøj <arne@vajhoej.dk> - 2015-06-03 21:27 -0400
    Re: how does a marker interface give specific instruction to jvm(java internals) Jeff Higgins <jeff@invalid.invalid> - 2015-05-13 22:33 -0400
      Re: how does a marker interface give specific instruction to jvm(java internals) Jeff Higgins <jeff@invalid.invalid> - 2015-05-13 22:49 -0400

csiph-web