Hi All,this is Prakash Is it possible to write custom markable interface,

Hi All,Is it possible to write custom markable interface
Thanks in advance

Here is a basic exmaple.
interface ExampleInterface {}
class ExampleInterfaceImpl implements
ExampleInterface {
     private boolean doSomething = false;
     public void setDoSomething(boolean doSomething) {
          this.doSomething = doSomething;
     public void doIt() {
          if(doSomething)
          System.out.println("Look! I am doing it!");
public class Example {
     public static void main(String[] args) {
ExampleInterfaceImpl exImpl = new
ew ExampleInterfaceImpl();
          if(exImpl instanceof ExampleInterface) {
               exImpl.setDoSomething(true);
          exImpl.doIt();
}Hello George,
So where is the check performed for say the
Serializable Interface? that says if Serializable
then it can be Serialized?
CheersNot in the JVM

Similar Messages

  • Hi,all i think it seems to be silly question about markable interface

    i know that markable interface doesnt consists any methods.But when we implements those interfaces how they behave to service the class.
    ex.
    public class MyClass implements java.io.Serializable
    MyClass is serializable but the java.io.Serializable doesnt consist any methods how it service to MyClass

    you implement the Serializable interface just to let the API/JVM to know that the instances of the class can be serialized.
    These kind of interfaces are called marker interfaces.
    By the way some time ago there was a good discussion on marker interfaces on this forums. Try searching you might find it.

  • Please a simple problem but I don't know how to solve it. After installing 16 gb of ram all is good but when I turn on the computer it is a window signaling that all is correct. How is possible to delete once and for all that window? Thank you

    Please a simple problem but I don't know how to solve it. After installing 16 gb of ram all is good but when I turn on the computer it is a window signaling that all is correct. How is possible to delete once and for all that window? Thank you

    Well then maybe you could take a screenshot because the appearance of such a window is news to me.
    Also post your OS X version and what model Mac you have. The more detail, the better. Thanks.
    To take a screenshot hold ⌘ Shift 4 to create a selection crosshair. Click and hold while you drag the crosshair over the area you wish to capture and then release the mouse or trackpad. You will hear a "camera shutter" sound. This will deposit a screenshot on your Desktop.
    If you can't find it on your Desktop look in your Documents or Downloads folder.
    When you post your response, click the "camera" icon above the text field:
    This will display a dialog box which enables you to choose the screenshot file (remember it's on your Desktop) and click the Insert Image button.
    ⌘ Shift 4 and then pressing the space bar captures the frontmost window.
    ⌘ Shift 3 captures the entire screen.
    Drag the screenshot to the Trash after you post your reply.

  • How can i add a wireless printer HP officejet 6310 all in one? is it possible

    How can i add a wireless printer HP officejet 6310 all in one? is it possible..?

    Hi @millep 
    To answer your question, no the Officejet 2620 is not a wireless printer;
     - Source: Printer specifications
    As for the USB cable, personally, I believe the intention is to bring down the cost of the printer by selling the USB cable separately. Many people already have printer USB cables kicking around the house, so instead of paying more for the printer and having an extra cable I believe the theory is reduce the cost and sell the USB separately for those who need to purchase one.
    I hope this answers your inquiry.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • An unknown error occurred (0x80092013) what the **** is going on  from last six month i am unable to access i tune store?pls give me solution which should help me to shortout this problem as soon as possible

    An unknown error occurred (0x80092013) what the **** is going on  from last six month i am unable to access i tune store?pls give me solution which should help me to shortout this problem as soon as possible. i have not expected this from apple

    I have been trying for months to put iTunes on my laptop and kept getting installation errors in Windows 7. I gave up and just installed iTunes on my PC running XP.
    Now I have to install Quicktime on the laptop and once again I get an installation error 0x800736FD.
    All windows updates are fine, none failed.
    I have removed all apple software from my laptop using CCleaner, common files and folders. Tried reinstalling and still the same error.
    Could you offer any advice on how to get both quicktime and then iTunes working??
    Thank you in advance

  • Can i change apple id to update a game? if its possible how i can change it? if its not possible why in this generation why its not possible?

    can i change apple id to update a game? if its possible how i can change it? if its not possible why in this generation why its not possible?

    You can't. All apps, and any other content from the store, are tied to the account that downloaded them, and they will remain tied to that account - so only the account that bought/downloaded an app can download updates to an app. Are you having problems downloading an app update via the app's own account ?

  • I have been filling up my internal memory on my laptop after years of video editing. I now want to export all this footage to an external hard drive. What is the proper way to do this.

    I have been filling up my internal memory on my laptop after years of video editing. I now want to export all this footage to an external hard drive. What is the proper way to do this.

    Are the videos being stored in iMovie or another application? Have you exported/shared the video? If the video is in iMovie what version of iMovie are you using? Give as much info as possible, and you may also want to post the question in the iLife section of this forum since more people with video skills will be reading the iLife/iMovie threads.

  • TS4036 my ipad3 is just frozen with error message "this ipad hasn't been backed up in 2 weeks. Backups happen when this ipad is plugged in, locked, and connected to Wi-Fi." I have done all this and tried to backup via itunes on my laptop, but msg still pe

    My ipad just froze on me with an error message "this ipad hasn't been backed up for 2 weeks. Backups happen when this ipad is plugged in, locked, and connected to Wi-Fi. All this has been done including trying to backup via itunes (on my PC). all this still doesn't solve the problem. Anyone have a possible solution?

    Hold the Sleep/Wake and Home button down together until you see the Apple Logo.
    Note: You must hold both buttons down together.

  • We have just gone over our limit for data usage this month. Is it possible to add data just for this month?

    We have just gone over our limit for data usage this month. Is it possible to add data just for this month?

    YES.  YOU GOING TO DO A PLAN CHANGE.  WHEN IT GIES YOU DATE OPTIONS YOUR GOING TO BACK DATE IT TO BEGINING OF CYCLE.    ONCE THAT GOES THROUGH DO ANOTHER PLAN CHANGE BACK TO IRIGINAL PLAN AND FUTURE DATE TO BEGINIGN OF NEXT BILL CYCLE.  THIS ALL CAN BE DONE ON MY VERIZON OR IF YOU FEEL SAFER CALL CUSTOMER CARE AND THEY CAN DO THSI FOR YOU

  • Is there a app that will tell all apps that are running and possibly how much battery power they use?

    Is there a app that will tell all apps that are running and possibly how much battery power they use?

    You don't need an app to do this.  Here's how you get the battery info.  Go to Settings>More>Battery. This will show you all the active apps and their individual battery usage.

  • Anytime I open Firefox I get the follopwing meesage: It is storngly recommended that you appl this update as soon as possible. When I trr to di it, it is showing that it is trying to connect to the update server but nothing is happening

    Anytime I open Firefox I get the following message: It is strongly recommended that you apply this update as soon as possible. When I try to do it, it is showing that it is trying to connect to the update server but nothing is happening

    If there are problems with updating then best is to download the full version and uninstall the currently installed version.
    Download a fresh Firefox copy and save the file to the desktop.
    * Firefox 7.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Uninstall your current Firefox version.
    * Do not remove personal data when you uninstall the current version or you lose your bookmarks and other data in the profile folder.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/Profile_backup

  • I have a problem with wifi in my iphone 4s, i already try everything and download latest version 7.1(11D167) but wifi switch is not working, its my humble request to Apple support team that pls resolve this problem as soon as possible because

    I have a problem with wifi in my iphone 4s, i already try everything and download latest version 7.1(11D167) but wifi switch is not working, its my humble request to Apple support team that pls resolve this problem as soon as possible because its a prestiage of Apple Company.
    Pls inform me how can i resolve the problem of wifi.

    You have to go to autherized iPhone agent.

  • How do I consolidate all this at this point: Icloud Drive, Itunes Match, Local iTunes Library, Local iPhoto, Local Aperture, Photo stream, Familly sharing, sharing on iOS, music sharing on iOS, music sharing on mac etc.

    I am trying to grasp all the possibilities for consolidating my stuff and my family's stuff from multiple devices and multiple accounts from multiple sources  but I cant. 
    I have been reading many instructions and FAQ regarding iCloud Drive, iCloud Sharing, iTunes Match, Familly Sharing, file size limitations on iCloud Drive, app sharing on iOS, Backup vs Sync vs cloud sharing,  storing iWork documents on iCloud drive, storing iTunes library on iCloud Drive, storing iPhoto library on iCloud Drive, storing Aperture library on the iCloud, the Photos app on iOS with iCloud and many others.... but I feel like I need a systems admin course from apple to manage all of it.
    This is what I and my family currently have:
    Hardware: Multiple iPhones, Multiple Macs, Apple TV (with hard drive), Multiple iPads.
    Operating systems: Everything is upgraded to the latest iOS and Yosemite.
    Libraries:
    1)  Multiple iTunes Libraries locally stored on Macs and IPhones with lossless CD music and iTunes purchased music. What I want to do:
    a) Have a main family shared iTunes library across ALL devices that contains our Lossless music and purchased music. so that it can be played across ALL   devices. With the ability to have private music for each individual (Not shared).
    b) Purchase new music and add it to the family share or purchase music and make it private (Not shared).
    2)  Multiple iPhoto Libraries macs (With photo stream from iPhones) and ONE Aperture Library on my mac. What I want to do:
    a) Have a main family shared photo library that every one can deposit to and view.
    b) Store individual iPhoto libraries on iCloud Drive(s)? So that everyone can have their own library and edit it across THEIR devices.
    c) Store and use my Aperture Library on iCloud Drive?
    Other documents:
    iWork files, PDFs etc. What I want to do:
    a) Have a main family shared area (on iCloud Drive i suppose) where we can share documents.
    b) Sync private documents across ALL individuals devices (Available locally and on iCloud).
    c) Store private documents (One instance)  on iCloud drive and make them available on ALL individuals devices.
    d) Backup of local documents?
    Apps:
    iOS apps:
    a) Share purchased apps?
    b) Not share private apps.
    Storage:
    What do I purchase to accomplish the above:
    a) iCloud storage for everyone?
    b) iTunes Match for everyone?
    c) All of the above?
    Conclusion:
    It would be great for Apple to explain all this with all the options in one concise document instead of hunting down individual documents and sections all over the place.
    Thank you for your help.

    Hey there!
    You and I are data soulmates. I have been having this trouble for a while and have yet to get my head around it. Our problem is that we've cycled through multiple macs and the "home" or "host" for all the stuff that's now been moved or moving to the Cloud is very scattered. It drives me crazy... almost to the point where I'm thinking about starting a brand-new iCloud account and beginning from scratch.
    If you have any experiences or recommendations you could share about your strategy, I would love to hear it.

  • New to all this - questions about my setup

    Hi All
    I have recently been loaned an airport express to play with. My imac connects wirelessly to a netgear router. I have added the airport express as a client (I think). It works fine for streaming music to my hifi in the kitchen, but if I move the airport express to another room and connect it to the hifi there the music streams for a few seconds, silence for a few seconds, music a few seconds etc.
    I have 2 questions:
    1. Is this likely to be just due to a worse signal in the second room. (The distance to the router is very similar although the AE is plugged in behind a cabinet)
    2. Presumably my imac is sending music to the router and then to the airport express. Would this be improved by connecting the imac to the router by ethernet, or can the imac talk directly to the airport express and bypass the router.
    I hope the above is clear - I am a bit puzzled by all this. Thanks for any suggestions.

    1. Is this likely to be just due to a worse signal in the second room. (The distance to the router is very similar although the AE is plugged in behind a cabinet)
    Yes
    2. Presumably my imac is sending music to the router and then to the airport express. Would this be improved by connecting the imac to the router by ethernet...
    No
    ...or can the imac talk directly to the airport express and bypass the router.
    Yes but then your AirPort Express (AX) would be creating a separate wireless network and your iMac would have to decide which network to connect to (Internet or stream music).

  • I have a wireless network at home. I run my iphone and ipad on it with no problems. Just purchased a MacBook Pro, and now my wi-fi keeps disconnecting and i get an error message saying another device is using the same IP address. What does all this mean?

    I have a wireless network at home. I run my iphone and ipad on it with no problems. Just purchased a MacBook Pro, and now my wi-fi keeps disconnecting and i get an error message saying another device is using the same IP address. What does all this mean?

    Hello AKCamus
    To give you some ideas of what to do next, I have provided a few articles that will give some troubleshooting Wi-Fi connections and recommended Wi-Fi settings.
    iOS and OS X: Recommended settings for Wi-Fi routers and access points
    http://support.apple.com/kb/HT4199
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Troubleshooting Wi-Fi issues in OS X Lion and Mac OS X v10.6
    http://support.apple.com/kb/HT4628
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

Maybe you are looking for

  • BAPI_PO_CREATE1: For Service Items

    Dear All, I am trying to create an upload program for all the POs which include service items using BAPI_PO_CREATE1. However, i am facing problems: Systems throws up an error message <b>"In case of account assignment, please enter acc. assignment dat

  • Library in forms 6i

    i'm using a library (pll) in a form the library is in my local disk, i want to use the form in several clients, the question is do i have to copy de pll in each client or there is an alternative. tia

  • JS CS2 Transparency

    Hi all, How can I identify if a page has objects with transparcy effects applied to them? The objects could also be either photoshop of illustrator links with transparencies added in their native applications. In Indesigns desktop version, in the use

  • Root creation problem through jndi api

    Hi all, i am using the following code to create the context. import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.naming.NameAlreadyBoundException; import javax.naming.directory.*; import

  • Media browser will not load iphoto

    Hi My pages media browser will not show my iphoto pics. It shows my files from garageband, but not iphoto. I tried dragging iphoto into the iwork folder and I also downloaded the ilife support 9.0.3 which was recommended in another post,but neither w