Avatar of rohit_kapil
rohit_kapil
 asked on

What does [L before a java class signify

Hi,

I'm using -XX:+PrintClassHistogram to print the number of instances of each class because the application is going OOM. When I take look at the output I see the following class as the one taking the max heap space
num   #instances    #bytes  class name
--------------------------------------
  1:   4497682   534109352  [Ljava.lang.Object;

What does [L prefix to java.lang.Object mean?
Other classes appear without an prefix
e.g
 2:   8639038   207336912  java.lang.Integer

why does java.lang.Object appear with [L as prefix and what does it mean wheres there is no prefix to java.lang.Integer

Thanks
Java

Avatar of undefined
Last Comment
Mick Barry

8/22/2022 - Mon
CEHJ

It means an array of Object
Mick Barry

Indicates its an array

ASKER CERTIFIED SOLUTION
Mick Barry

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23