• Register

Recent posts tagged static

37 4 1 min.
What is static binding and dynamic bindingWhen  you connect  a method call to the method body , this is what is  known as Binding.  Some of you may already know  that Dynamic binding uses Object to resolve binding. While Stat...
posted Jun 4 offonime 249 points
45 2 1 min.
First of all, we should know about Static Keyword.Static means one copy per class. It is specific to class and not to instances or objects. It can be directly accessed with class name. It is not mandatory to call them by instance or object ...
posted May 31 Jeevani 278 points
17 2 2 min.
Both static and final are the keywords used to declare a variable in java. Both have a different effect when applied to class and methods. The main difference between them is that the static class member can be used independently while the final...
posted May 29 Huzaifa-Glitch 875 points
12 1 4 min.
Difference between static and dynamic in javaThe main difference between Static and Dynamic Polymorphism is that Static Polymorphism is a type of polymorphism that resolves at compile time while Dynamic Polymorphism is a type of polymo...
posted May 29 Sanjana Sagar 440 points
7 0 2 min.
In any programming language, there is always a starting point from where your program will start to execute. In Java Programming language, the main() method is the starting point. The main() method have a proper signature:Syntax:class Human{ public s...
posted May 27 Being human 148 points
6 0 1 min.
Difference between static and final keyword in javaIn this post, we will understand the difference between ‘static’ and ‘final’ keywords in Java.StaticIt can be applied to nested static class, variables, methods and block.It i...
posted May 22 Sanjana Sagar 440 points
6 0 2 min.
How to reference a non static method in javaClass is a template and when we create object instance variables gets memory.If we create two objects variables get memory in two objects. So instance variables gets memory whenever object is created.When w...
posted May 20 Sanjana Sagar 440 points
3 0 2 min.
A static reference is reference that exists only once for an entire type(class, struct delegate etc.) Because there is only one that one reference, so doesn't matter how many instances of that type exist in the current context. In simple, static ...
posted May 14 mhfaisal 262 points
0 0 3 min.
Static KeywordStatic means one copy per class. It is specific to class and not to instances/objects. It can be directly accessed with class name. It is not mandatory to call them by instance or object  for accessing.The static keyword in ja...
posted May 9 Jeevani 278 points
0 0 4 min.
An instance method is one that is always invoked on an instance (object) of a class. For example p1.getName (); where p1 is an object of type Person, it is an instance method: to invoke it we need a person instance. A cl...
posted Mar 16 amna 112,545 points
8 0 1 min.
C++ has few boundations and they all had their reasons for why they exist. “ISO C++ forbids in class initialization of non const static members” is one of them. In this article we will discuss its reasons and solutions.Cause of the errorT...
posted Aug 3, 2020 Lalit Kumar 1,240 points
To see more, click for the full list of questions or popular tags.