What is the exact meaning of instantiate in JAVA

后端 未结 7 1067
孤独总比滥情好
孤独总比滥情好 2021-01-01 03:37

I\'am a newbie in JAVA and this came across this word called. \"A class i.e. created inside a method is called local inner class in java. If you want to invoke the methods o

7条回答
  •  时光说笑
    2021-01-01 04:18

    when you create an instance of a class or simply called as an object

    for ex: Bike abc = new Bike();

    as soon as you create this object using the new keyword, a new block of memory is created and object "abc" will now be pointing to that new block of memory, this is called as instantiation in java.

提交回复
热议问题