Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
What is difference b/w a singelton class and a static class?
c#
c++
classes
java
oop
0 Votes
2 Answers
12th Jul 2018, 9:47 AM
Dhruv garg
public class Program { public static void main(String[] args) { int x=8, y=2; System.out.println(y%x);
q
2 Votes
3 Answers
30th Dec 2019, 4:32 PM
BAYODE BLESSING AKINBOLA
what is public static void main (String arts [ ] ) ???
java
0 Votes
4 Answers
15th Sep 2016, 3:18 AM
jesus
Why is needed static in c++? How it works? Please, give example.
c++
static
0 Votes
4 Answers
14th Aug 2017, 7:51 PM
Alexik
Why do i get error :Undefined reference to Class::static member_variable?[Solved]
c++
static
1 Vote
5 Answers
17th Aug 2021, 4:04 PM
Abhay
What is the meaning of static keyword and its use.
static
0 Votes
2 Answers
23rd Feb 2017, 2:22 PM
Mokshal Shah
What is the difference between dynamic and static web pages
and
between
difference
dynamic
is
static
the
webpages
what
0 Votes
2 Answers
12th Jun 2017, 5:15 PM
B.Harsha priya
How to put a non static Method into a String- .Split()
c#
methods
static
string-split
1 Vote
2 Answers
15th Sep 2017, 7:16 PM
Dan Gelorde
What is difference between static function and sealed funtion in c#
c#
sealed
static
1 Vote
2 Answers
29th May 2017, 10:56 AM
mirza arslan
What is the meaning of " static void Main(string[] args) "?
c#
output
1 Vote
1 Answer
28th Jul 2018, 6:26 PM
Mohamed Ramadan El Geneidy
public class Main { public static void main(String[] args) { int a = 'a'; System.out.print(a); } }
java
2 Votes
6 Answers
9th Sep 2018, 7:29 AM
sapan
Hey are constructors and setters almost the same if you have just 1 variable? Setters just used if you have more than 1 variabl
java
static
0 Votes
11 Answers
17th Mar 2017, 3:56 PM
jack
What happens if static is not written while declaring a method?
java
1 Vote
1 Answer
3rd Jul 2018, 1:39 PM
Baskaran Panneerselvam
Porque un método debe ser static dentro de la función main?
main
methods
static
2 Votes
1 Answer
5th Oct 2017, 4:28 PM
Luis Gerardo Collazos Castro
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner sourav = new Scanne
java
0 Votes
13 Answers
25th Jul 2017, 8:41 AM
Sourav Kumar
Can we acces in same class static block element outside of block ?
java
static
0 Votes
5 Answers
4th Jun 2017, 6:52 AM
Shyam Lal Chauhan
we cannot override final method but can we do for static method how?
final
java
methods
oop
override
static
4 Votes
2 Answers
12th Mar 2017, 6:52 PM
Roshan Kumar
Can somebody fix this code for me pleasei .......get this error;illegal static declaration in inner class Mine
benjamin
wasula
2 Votes
11 Answers
9th Dec 2017, 8:24 AM
Ian
Why this program show output as "No Output" after removing static keyword?? please explain it detailed...
java
output
0 Votes
6 Answers
13th May 2020, 2:27 PM
Yogeshwaran
do you know? where is the error?How to fix
java
static
4 Votes
2 Answers
7th Nov 2018, 8:58 PM
Lana Mironchik
I wanted to know why has a static variable been used in this code?
arrays
functions
2 Votes
2 Answers
30th Oct 2019, 8:44 AM
Emad
Can somebody explain the usefulness of public static in java?
classes
0 Votes
1 Answer
30th Jul 2018, 5:31 PM
omomehin
What is the difference between static int and simple int????
,c,java
c++
0 Votes
1 Answer
6th Dec 2017, 4:55 PM
TIRTHARAJ SEN
What is the use of static member functions in class?
c++
class
1 Vote
1 Answer
5th Jan 2017, 2:30 PM
SANJAY SIDDHARTH C V
Why are all fields in an interface static and final?
fields
interface
java
1 Vote
1 Answer
29th Mar 2017, 5:39 PM
Sanjeev Dulal
What is and how to use static int in c++
c++
static
variable
0 Votes
1 Answer
9th Nov 2016, 5:44 PM
هونەر عومەر
What is the difference between instance variable and class variable and static variable
c#
c++
java
1 Vote
2 Answers
1st Sep 2019, 5:22 AM
LOKESHA E J
Why we use static to call the object can't we use another method.
methods
static
void
1 Vote
4 Answers
7th Mar 2018, 12:27 PM
Ajay Verma
Why we can't access static variable with object reference in c# ?
c#
java
object
static
3 Votes
1 Answer
26th Feb 2017, 3:38 PM
SUCHIT YADAV
Are the keywords 'class', 'public static avoid' and all those compulsory in writing Java?
java
javabasics
1 Vote
3 Answers
4th Feb 2021, 2:12 PM
PHILOMATH PRATIK
What is static block in java? And can anyone explain the code written in description???
java
static
3 Votes
2 Answers
25th Mar 2019, 3:44 AM
Kushang Shah
What is the difference between a static local variable and a global variable?
c++
1 Vote
2 Answers
6th Jul 2018, 6:25 PM
DerpyCoco
is multithreading swapping 2 predefined pointer to one static variable causing memory error?
c
c++
-2 Votes
6 Answers
27th Sep 2017, 1:14 AM
minika woon
What is the importance of static in our java program ?
static
0 Votes
1 Answer
11th May 2018, 7:42 PM
Sarthak Vishwakarma
How will you explain Static and Auto data types to a layman?
auto
c
c++
datatypes
doubt
explain
layman
static
0 Votes
3 Answers
16th Sep 2017, 7:36 PM
Siraz Naorem
how i can define a variable that share between all classes?
c#
static
2 Votes
8 Answers
6th Nov 2016, 1:38 PM
KiynL
What on earth does Array.Sort() do?
c#
static
0 Votes
1 Answer
21st Jun 2020, 2:57 PM
ANNA TOWNSEND
Please Explain the Use of Static in java briefly with a good example.
java
static
2 Votes
3 Answers
3rd Feb 2017, 6:17 PM
Abhijith R
Can anyone explain me about static and dynamic memory and their usages?
dynamic
memory
static
0 Votes
2 Answers
8th Jun 2018, 5:09 PM
Julian Aung
Can I have static member in struct in C as in C++ example?
c
c++
0 Votes
2 Answers
29th Jul 2019, 7:36 PM
UraL
Public class Exceptions {public static void main(String[] args) {try {if (args.length == 0) return;System.out.println(args[0]);}
java
1 Vote
3 Answers
28th Jun 2017, 2:01 AM
Sandeep Jena
C - Why can't I use auto, extern, static or register variables in a union?
auto
c
extern
register
static
union
variables
2 Votes
2 Answers
9th Feb 2020, 11:11 AM
Paolo De Nictolis
can someone pls help me with static non statci and access modifiers??
java
static
0 Votes
3 Answers
1st Oct 2016, 5:31 PM
pons ponmudi
Why is it that the static block executes first in java
java
0 Votes
2 Answers
23rd Feb 2018, 6:54 AM
Basavaraj Rajashekhar Patil
Please Explain
c#
static
2 Votes
2 Answers
16th Nov 2018, 1:21 AM
Ivan A Mendiola
Can someone gives examples on how to initialize abstract, interface and static classes?
abstract-classes
c#
interfaces
static
0 Votes
4 Answers
25th May 2017, 6:24 AM
DoubleVermine
How does memory management takes place for static and non-static variables ?
java
non-static
static
1 Vote
2 Answers
23rd Sep 2016, 3:37 AM
Pavan Teja
Why x value 1 is used even though we have static x value as 2 in this code?
java
5 Votes
4 Answers
13th Mar 2022, 7:36 AM
alagammai uma
How to run this code in one file
java
static
0 Votes
6 Answers
22nd Jul 2020, 1:34 PM
jjkc
Is it possible to reset the increasing value of static variable
oop
php
0 Votes
1 Answer
2nd Nov 2018, 9:22 PM
Anubhav Singh Parihar
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
13
14
15
...
23
Next >
Hot today
Functions in python
2 Votes
How to make a playground
1 Votes
For Mobile app
0 Votes
How can you find whether a number is odd or even in a different way(other than (x%2==0))?
1 Votes
I need advice
1 Votes
Html 5 document question
1 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
𝙵𝙸𝙽𝙳 𝚃𝙷𝙴 𝙸𝙽𝙿𝚄𝚃 𝙾𝙵 𝚃𝙷𝙴 𝙿𝚁𝙾𝙶𝚁𝙰𝙼
1 Votes
Python
0 Votes
Can someone explain inline and block elements please
0 Votes