-3

I have encountered a weird situation today for second time which keeps my mind busy. The problem has started when i looked Matcher class's constructors which are not declared as private. I thought, i can invoke Matcher's constructor in other class with creating object of it. But my IDE has shown the constructors as private. Constructors of Matcher class

And i am wondering why cannot i access those constructors? The second time was in Bitmap class from Android Library. I haven't worked with Matcher or any related class. This is the first time, i am dealing with it. I would be grateful if you guys and ladies can help. Thanks in advance. BTW, I am using IntelliJ Idea as IDE.

shmosel
  • 49,289
  • 6
  • 73
  • 138
Yekta Sarıoğlu
  • 1,435
  • 2
  • 12
  • 20

1 Answers1

0

They are package protected. So you can call those only in classes in the same package.

pirho
  • 11,565
  • 12
  • 43
  • 70