---
title: "Operations on Object"
url: https://docs.zeroc.com/ice/3.8/slice/operations-on-object
language: java
docs_index: https://docs.zeroc.com/llms.txt
---

> For an index of every page, see [llms.txt](https://docs.zeroc.com/llms.txt).

# Operations on Object

Programming language: Java. Other languages: [C++](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/cpp.md), [C#](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/csharp.md), [JavaScript](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/js.md), [MATLAB](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/matlab.md), [PHP](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/php.md), [Python](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/python.md), [Ruby](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/ruby.md), [Swift](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/swift.md).

Every Slice interface derives from `Object` ([Implicit Inheritance from Object](https://docs.zeroc.com/ice/3.8/slice/interfaces/interface-inheritance.md#implicit-inheritance-from-object)). `Object` is a Slice keyword, so you cannot define it in Slice; this is what its definition would look like if you could:

```slice
sequence<string> StringSeq;

interface Object // pseudo-Slice: Object is a keyword
{
    idempotent void ice_ping();
    idempotent bool ice_isA(string typeId);
    idempotent string ice_id();
    idempotent StringSeq ice_ids();
}
```

The four operations are standard Slice operations, mapped with the standard mapping rules. You call them on any proxy, like the operations of your own interfaces:

| Operation | Description |
| --- | --- |
| [`ice_ping`](https://code.zeroc.com/ice/3.8/api/java/com.zeroc.ice/com/zeroc/Ice/ObjectPrx.html#ice_ping()) | Tests whether the target object can be reached. |
| [`ice_isA`](https://code.zeroc.com/ice/3.8/api/java/com.zeroc.ice/com/zeroc/Ice/ObjectPrx.html#ice_isA(java.lang.String)) | Tests whether the target object implements the Slice interface with the given [type ID](https://docs.zeroc.com/ice/3.8/slice/type-ids.md); `checkedCast` calls it. |
| [`ice_id`](https://code.zeroc.com/ice/3.8/api/java/com.zeroc.ice/com/zeroc/Ice/ObjectPrx.html#ice_id()) | Returns the type ID of the most-derived Slice interface the target object implements. |
| [`ice_ids`](https://code.zeroc.com/ice/3.8/api/java/com.zeroc.ice/com/zeroc/Ice/ObjectPrx.html#ice_ids()) | Returns the type IDs of all the Slice interfaces the target object implements, in alphabetical order. |

## See Also

- [Type IDs](https://docs.zeroc.com/ice/3.8/slice/type-ids.md)
- [Interface Inheritance](https://docs.zeroc.com/ice/3.8/slice/interfaces/interface-inheritance.md)
