Java.ObjectClassName
--------------------

Queries name of class of an java object.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Java](component_Java.md) | [6.5](newinversion65.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "Java.ObjectClassName"; JObject ) 

**MBS**( **"Java.ObjectClassName";** /\* Queries name of class of an java object. \*/  
**$JObject**) /\* The java object reference number.e.g. $j \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| JObject | The java object reference number. | $j |

### Result

Returns text or error.

### Description

Queries name of class of an java object.  
### Examples

Query object name:

 MBS ( "Java.ObjectClassName"; $j )  
Create object and query class name:

 Set Variable \[$j ; Value:MBS ( "[Java.NewClassObject](JavaNewClassObject.md)"; "test"; "&lt;init&gt;"; "()V")\]  
Set Variable \[$r ; Value:MBS ( "Java.ObjectClassName"; $j )\]  
Show Custom Dialog \["value"; $r \]  
Set Variable \[$r ; Value:MBS ( "[Java.Release](JavaRelease.md)"; $j )\]  
### See also

- [Java.NewClassObject](JavaNewClassObject.md)
- [Java.Release](JavaRelease.md)

This function checks for a license.

Created 2nd October 2016 , last changed 2nd October 2016

  
[Java.NewClassObject](JavaNewClassObject.md) - [Java.Release](JavaRelease.md)

[HTML Version](JavaObjectClassName.shtml)