What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-16 10:44:07
what is constractor
Constructors are the special methods without any return type. Constructors have the same name with the className Constructors are special methods, which are called whenever the new keyword is used to create an object of a class By default every class al... Add solution -
Html 2021-10-02 13:51:03
class
Class is a blueprint or template which you can create as many objects as you like. Object is a member or instance of a class. Class is declared using class keyword, Object is created through new keyword mainly. A class is a template for objects. A class ... Add solution -
C# 2021-09-24 15:58:02
c# new keyword
The new operator creates a new instance of a type. In the example below an object is created for the class using the new. Calculate c = new Calculate(); You can also use the new keyword to create an instance of the array. double[] points = new do... Add solution -
Other 2021-09-24 14:59:02
string constant pool
String uses a special memory location to reuse of String objects called String Constant Pool. String objects created without the use of new keyword are stored in the String Constant Pool part of the heap. It doesn't create the same string object if there ... Add solution -
Javascript 2021-09-24 02:39:02
js data types
/* The latest ECMAScript standard defines nine types: Six Data Types that are primitives, checked by typeof operator: undefined : typeof instance === "undefined" Boolean : typeof instance === "boolean" Number : typeof instance === &qu... Add solution -
CSS 2021-09-14 20:58:03
class
Class is a blueprint or template which you can create as many objects as you like. Object is a member or instance of a class. Class is declared using class keyword, Object is created through new keyword mainly. A class is a template for objects. A class ... Add solution -
Other 2021-09-10 04:04:02
is a relationship vs has a relationship
‘Has a ‘ relationship is also known as “composition or Aggregation”. As in inheritance we have ‘extends’ keyword we don’t have any keyword to implement ‘Has a’ relationship in java. The main advantag... Add solution -
Java 2021-09-05 02:58:02
is a and has a relationship in java
‘Has a ‘ relationship is also known as “composition or Aggregation”. As in inheritance we have ‘extends’ keyword we don’t have any keyword to implement ‘Has a’ relationship in java. The main advantag... Add solution