Cursos
Cursos
Compilador de Código
Compilador de Código
Discutir
Preços
Teams
Fazer login
Registrar
Menu
Q&A Discussões
Pesquisar
Pesquisar
Faça uma pergunta
Faça uma pergunta
import Java.Util.Scanner; public class Program { public static void main(String[] args) { Scanner AgeScan = new
java
0 Voto
3 Respostas
30th Jan 2019, 1:56 PM
Adewusi Abdulgafar
Can we use any other word instead of main in the line: public static void main (String []args) as main is not a keyword?
keywords
main
15 Votos
3 Respostas
3rd Jul 2020, 6:48 PM
💖Miss Angelic💖
What is static keyword? And why it is used? Need a clear explaination with some examples
java
static
1 Voto
4 Respostas
23rd Feb 2017, 6:15 AM
Atul Tirkey
Why is the main method void?
java
static
1 Voto
4 Respostas
16th Aug 2017, 3:30 PM
GodBlessAmericasFrog
Declare a static, stuck on Java
java
static
0 Voto
2 Respostas
9th Oct 2023, 8:43 AM
Thomas
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner
.
-5 Votos
3 Respostas
15th Jun 2021, 3:47 PM
Priti
In java below 1.7version, Without writing main method & static block is it possible to print some statements to the console?How?
console
java
java5
java6
jdk1.5
jdk1.6
main
print
statements
static_block
2 Votos
2 Respostas
27th Jul 2019, 3:12 PM
sunnym_97
Benefit from the final
final
static
0 Voto
3 Respostas
18th Oct 2019, 7:06 AM
Максим Суманеев
Can we create a static web site just with html and javascript styles without using css ?
css
html
javascript
style
styles
website
3 Votos
3 Respostas
11th Mar 2017, 1:41 PM
Mehdi Sabri
What does the keyword static do in java can somone answer this question but the answer to be easy explanation
java
static
1 Voto
3 Respostas
9th Jan 2018, 9:35 PM
Davo
What is the difference between these functions?
method
python
static
2 Votos
6 Respostas
31st May 2018, 9:00 AM
Yusuf
class leapyear { public static void main (String args[]] { int year=2016; if(year%4==0) { System.out.println(“The given year is
java
0 Voto
4 Respostas
8th Jan 2025, 10:31 AM
Prem Sharma
Why static variables are initialized by only constant? Why we can't initialized it by a other variables?
c
clanguage
static
variables
0 Voto
3 Respostas
4th Jan 2020, 6:39 AM
VEERESH MAURYA
I'm wanting a static black background with grey/silver sections to scroll over the background. What am I missing?
background
1 Voto
3 Respostas
5th Aug 2019, 2:10 AM
jeremiah
Compile time polymorphysm or runtime
c++
polymorphism
static
0 Voto
5 Respostas
13th Feb 2025, 5:30 AM
Ketan Lalcheta
I need some help with Java
methods
static
0 Voto
1 Resposta
27th May 2019, 6:18 AM
Mirsaid
"public static void main(String[ ] args)"for what we are using string[] args..what they perform in program?
variables
0 Voto
3 Respostas
4th Jun 2018, 3:52 PM
Sridhar
Why does this code output "10099100"? What exactly does "static" in PHP mean?
php
static
1 Voto
3 Respostas
23rd Aug 2017, 6:02 PM
Pete Wright
What happens when a variable is declared as static?
java
static
0 Voto
4 Respostas
5th Sep 2016, 2:22 PM
Ved
Is it necessary to declare main method as static in java...what is the use of it...
comments
main,java,tutorial
0 Voto
2 Respostas
24th Aug 2018, 6:10 AM
Pawan Bangar
What is the main propose of static and void??? Why are they used???
java
-1 Voto
2 Respostas
9th Nov 2017, 1:17 PM
Niraz Tamang
How can I change a static element in array using variable in JS?
javascript
0 Voto
1 Resposta
28th May 2019, 10:12 AM
Roberto Sevilla Varela
what is difference b/w static and dynamic memory? simple and logical explaination plz
c++
pointers
0 Voto
1 Resposta
25th Dec 2016, 9:52 AM
Aqib Asmat
When static variable and non variable will be load or allocated in JVM
java
static
0 Voto
1 Resposta
9th Jan 2017, 4:21 PM
Annapoorani.H
What is the output of this code? enum Test {a=2,b,c,d,e}; static void main (string [] args){int(x) = (int)Test.c ; writeln (x)}
enums
-3 Votos
4 Respostas
7th Jun 2017, 11:50 PM
thomo
How to elimintae alternate numbers in a given number by using static method with parameters.
java
0 Voto
2 Respostas
10th May 2018, 11:00 AM
sriram rathod
Раскажите подробнее о функции static?
functions
static
1 Voto
1 Resposta
6th Aug 2018, 10:04 AM
лолокек мэн
import java.util.Scanner; class MyClass { public static void main(String[ ] args) { Scanner myVar = new Scanner(System.in); System.out.println(myVar.nextLine()); } }
input
java
0 Voto
6 Respostas
12th Oct 2016, 6:53 AM
Javed
Does anybody know how to create an interactive login/sign up script? I don't want static variables programmed.
html
java
javascript
2 Votos
3 Respostas
10th Aug 2017, 8:08 PM
Micah James Lewis
The initial value to a static member variable is done outside the class. Why?
c++
classes
variables
1 Voto
1 Resposta
25th Feb 2017, 10:26 AM
Srikanth Srinivasan
public class Main { public static void main(String[] args) { //correct variable declarations int name = "J
can
don'tknow
help
i
me
todo
what
who
0 Voto
2 Respostas
21st Nov 2020, 1:58 AM
John Hale
public class Program { public static void main(String[] args) { //fix the variable types string name =
0
error
line
0 Voto
2 Respostas
25th Jul 2022, 6:12 PM
30 Nidhi Kumari 10B
what will happen if we declare instance of static classes? will it give compile time error or run time?
c#
2 Votos
5 Respostas
10th Jul 2016, 2:46 PM
Souradip Das
Please Java developers should help me with this. What is the necessity of static being in the main function?
class
java
programming
public
static
1 Voto
2 Respostas
25th Sep 2020, 7:17 PM
Joseph Onipede
what is the output put of the following program? int main () { int x=5; static int y =x; prinf("%d", y) ; }
5
error
garbage
3 Votos
4 Respostas
10th Sep 2019, 5:17 PM
Vaibhav Karma
Isn't making properties 'static' similar to making methods 'final'? If I'm not wrong static properties are immutable right?
final
static
0 Voto
1 Resposta
24th Dec 2020, 4:28 PM
Unaish Ahmed
I figure out
final
static
0 Voto
1 Resposta
10th Dec 2018, 8:55 PM
David Mambrú De León
Explained easily
java
static
2 Votos
2 Respostas
23rd Nov 2016, 1:25 PM
Dirk
What is wrong with the code below? Can anybody say why can't i call a non-static method from a static method?
methods
0 Voto
7 Respostas
25th Jul 2018, 8:36 AM
Nathan
why the output of this code is 4 why not 5 or 8.
c++
classes
static
variables
2 Votos
6 Respostas
9th Sep 2019, 4:22 AM
Aadarsh Gupta
Can someone explain to me what is Static? Especially when we put static on the Variable. What will happen to the Variable?
java
static
variables
0 Voto
6 Respostas
9th Dec 2018, 9:58 AM
MsMiyuna
How to create object in static members ?? Can anyone plz explain with example ???
java
1 Voto
2 Respostas
26th Aug 2016, 4:57 PM
suji prem
I want to know more about the new c# v6 functions....like the "using static" to import static classes
c#
3 Votos
3 Respostas
26th Oct 2016, 7:23 PM
Maduekwe Ebuka Collins
public class Program { public static void main(String[] args) { int [ ] myArr = {6, 42, 3, 7}; int sum=0;
arrays
1 Voto
8 Respostas
16th Mar 2018, 3:48 PM
Devansh Gupta
How can I keep track of the number of instances of a class
instance
static
variables
2 Votos
7 Respostas
3rd Jun 2017, 4:32 PM
Negoita P Daniel-Dorin
What is the use of static functions in c? How it is allowed to use them in different files ?
c
1 Voto
4 Respostas
15th Oct 2019, 5:09 PM
Arpita
Why are global variables a bad idea?
bad
class
encapsulation
getter
global
object
oriented
setter
static
variables
24 Votos
21 Respostas
29th Sep 2018, 8:33 AM
Sonic
public class Program { public static void main(String[] args) { } { int a = 1; while (a<=5)
tes
1 Voto
4 Respostas
18th Oct 2017, 12:04 PM
Agni Rosadi
[SOLVED]Static Members
c#
constructors
deconstructors
static
1 Voto
4 Respostas
5th Oct 2021, 8:50 AM
Adam
What are the tools that help to find bugs or perform static analysis? ...
python
0 Voto
1 Resposta
29th Nov 2019, 2:27 PM
Subho Protim Sarkar
Faça uma pergunta
Faça uma pergunta
Faça uma pergunta
Faça uma pergunta
< Anterior
1
...
16
17
18
...
24
Próximo >
Quente hoje
How can one build an Ai app
3 Votes
Websites for frontend developers
1 Votes
Can someone explain how it works (im new)
0 Votes
AI Takeover
1 Votes
How to learn python
1 Votes
C course progress restart
2 Votes
I need a mentor in coding specifically AI
0 Votes
Error in the result
0 Votes
I need a help
0 Votes
Openfoam
0 Votes