Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Can we call static methods in java with object of that class??
java
objects
static
3 Votes
6 Answers
16th Oct 2017, 1:57 PM
Biplab Ghosh
why static keyword is written in methods (other than Main method)?
c#
methods
4 Votes
3 Answers
30th Sep 2016, 1:38 AM
Aishwarya
What is the use of static block and constructor in java.
and
block
constructor
of
static
use
5 Votes
2 Answers
20th Mar 2017, 7:15 PM
Pavan Kumar Basava
I want a complete static website code ..
html
javascript
php
-6 Votes
5 Answers
19th Sep 2017, 12:32 PM
Bilal Bhutta
Is it possible to write static without main?
java
1 Vote
1 Answer
25th Jan 2017, 12:22 PM
Vishnu Vardhan Mamidi
How to use static function without creating object
java
1 Vote
1 Answer
6th Dec 2016, 12:06 PM
Ayush Agrawal
Can abstract classes have static and final methods?
abstract-classes
java
1 Vote
1 Answer
28th Apr 2016, 3:50 PM
Neelesh I
How memory is allocated for these static variables?
java
static
0 Votes
1 Answer
16th Jun 2015, 4:14 AM
Bhalachandra bhat
import java.util.Scanner; public class Interest { @SuppressWarnings("resource") public static void main(String[] args) { Sc
programming
-3 Votes
13 Answers
30th Nov 2020, 6:57 AM
Tiamiyu Toheeb
Can we call static member of interface using object creation
interface
java
0 Votes
2 Answers
15th Apr 2020, 12:06 PM
Rajesh Deshbandhu
Does Java support to declare a method inside the static block?
java
0 Votes
4 Answers
28th Apr 2019, 1:02 PM
Asanka Karunasekara
How to make a navbar which is static but becomes fixed top when scrolled down. And again static when on top
html
javascript
jquery
navbar
1 Vote
2 Answers
3rd May 2017, 4:31 AM
Rayian Mahi
Why I must make SomeClass2 static to make this code work? Thanks)
methods
polymorphism
static
0 Votes
5 Answers
3rd Dec 2019, 11:09 AM
Даниил Ефремов
Why the keyword static is used in main function?
java
1 Vote
2 Answers
28th Jan 2017, 7:19 AM
Sandeep Singh Negi
Can someone explain to me what static means please?
java
static
1 Vote
2 Answers
9th Aug 2016, 5:48 AM
Thanigai Vasan
What is "public static void "mean and use for?
java
static
void
1 Vote
2 Answers
25th Jul 2016, 6:24 PM
Emad Taheri
As the static member variables are common to all the classes, where is the memory allocated for static members?
c#
static
0 Votes
1 Answer
27th Apr 2016, 10:35 PM
Anusuya Rangasamy
What is the difference between static member and instance member.
instance
member
methods
static
1 Vote
3 Answers
21st Nov 2017, 2:33 PM
Vivek
What's the difference between static void and void() { ?
code
java
needhelp
question
static
void
1 Vote
3 Answers
21st Jan 2018, 6:46 PM
Jaren Dogan
same output & different sysntax
java
static
0 Votes
18 Answers
18th Jun 2019, 5:54 PM
Khai123
Why output is 2?
static
0 Votes
4 Answers
25th Apr 2018, 10:58 PM
Elvis Vasquez
What is the difference between static variable and global variables
functions
0 Votes
2 Answers
13th Oct 2018, 6:35 AM
Hiral Jain
Does "public static void main" must be in this order ?
java
3 Votes
3 Answers
3rd Sep 2016, 1:02 AM
Ziq Kimi
What is a static method and a class method in python ?
classes
python
python3
0 Votes
3 Answers
8th Jan 2019, 6:31 AM
Gaurav Thakur
What is the use of using static keyword in methods and variables?
java
static
1 Vote
4 Answers
8th Nov 2019, 10:01 AM
nithish kumar
C++
static
0 Votes
2 Answers
19th Nov 2018, 10:02 PM
Nikola
what is difference between void bark() and public static void main( string...args)
classes
java
objects
3 Votes
5 Answers
2nd Aug 2016, 9:08 AM
Kalyan Surapaneni
Can you override a private or static method in Java?
return
2 Votes
2 Answers
17th Apr 2017, 2:45 PM
Adarsh Roshan
In Java what is meaning of public static void ?
java
question
2 Votes
2 Answers
4th Sep 2017, 4:17 AM
Ahmad Taj
I want to learn about static keyword plz somebody help
java
static
1 Vote
3 Answers
5th Jul 2016, 6:59 AM
Abdul Rafay
Why can't we have static method in a (non-static) inner class?
class
inner-classes
java
static
1 Vote
2 Answers
9th May 2022, 9:18 PM
Mohamed
Please provide some examples of static methods and class methods
classes
python
2 Votes
2 Answers
5th Feb 2016, 8:18 PM
Anurag
why is the static block executed before the main method in java?
java
methods
2 Votes
2 Answers
16th Dec 2019, 10:24 PM
Umar Idris
What is the difference between static and dynamic allocation of memory
c++
2 Votes
2 Answers
21st Apr 2018, 5:28 PM
Muhammad Omer
How to concatenate static string and user input String in java?
java
1 Vote
3 Answers
11th Aug 2018, 6:05 AM
Ajay Parmar
Please explain the use of static key word in java??
java
0 Votes
2 Answers
27th Apr 2019, 6:41 PM
Soumya Halder
Can anyone explain jvm program execution of object in static and instance block?
execution
java
jvm
program
0 Votes
6 Answers
30th Nov 2019, 7:05 PM
Ajoh Pv
Can we overload the static method in java ?if yes then how?
object
oriented
programming
1 Vote
4 Answers
3rd Oct 2019, 3:05 AM
Keyur Chaudhari
public class Main { public static void main(String[] args) { int i = 012345; System.out.println(i); } }
java
4 Votes
6 Answers
25th Apr 2019, 6:21 AM
Sonu Kumar
Create class Book with variable title, price. - Add static variable discountRate. - Add static variable count. Increment count v
class#static
0 Votes
1 Answer
15th May 2021, 9:46 AM
Shekhar Narwariya
What's the difference between a static class and an abstract class?
c#
static
3 Votes
2 Answers
5th Aug 2016, 1:05 PM
Alireza M
Why we use static keyword in main class of the java program
java
1 Vote
3 Answers
28th Mar 2021, 8:48 PM
Haider Ali Waris
Why we more often use static void while defining a method?
java
methods
static
void
0 Votes
2 Answers
27th Jul 2020, 4:56 PM
Samba_Chinta
public static void main(String args[]) Runnable() { public void run() { new RegisterMenu().setVisible (true);
java
2 Votes
5 Answers
1st May 2023, 6:21 PM
Yahya Rafli hidayah
What is the difference between static int variable and normal int variable??
c++
variables
-1 Vote
7 Answers
2nd Sep 2017, 11:45 AM
Harsha Sanju
we can use static and super keyword same time
java
0 Votes
2 Answers
10th Apr 2017, 6:30 PM
Rishi Mishrq
What is the meaning of word static in java?
b
0 Votes
2 Answers
31st Oct 2017, 4:06 PM
Mohammed Madian
When should one use a classmethod instead of a static method?
classes
python
3 Votes
2 Answers
5th Apr 2016, 9:50 PM
Shadow3097
Public static void main(String[] args) here int is not applies to why?
java
3 Votes
2 Answers
1st Aug 2018, 12:27 PM
Vidyanand kumar
I don't understand when to use public, private and static words...
java
methods
2 Votes
3 Answers
23rd Feb 2016, 2:50 AM
Maria Rosaria Amabile
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
11
12
13
...
23
Next >
Hot today
Is this realistic enough?
1 Votes
"Which is harder to master — Machine Learning or Cybersecurity? And why?"
1 Votes
𝙵𝙸𝙽𝙳 𝚃𝙷𝙴 𝙸𝙽𝙿𝚄𝚃 𝙾𝙵 𝚃𝙷𝙴 𝙿𝚁𝙾𝙶𝚁𝙰𝙼
1 Votes
MASS N NUMBER OF OBJECT DELETION FROM A CLASS
0 Votes
Can someone explain inline and block elements please
0 Votes
Need friends
0 Votes
"What’s the best way to combine creativity and coding? Can storytelling improve web apps?"
1 Votes
I am a beginner, please teach me how to use Python
0 Votes
Python
1 Votes
How do you print inputs
0 Votes