• Register

Recent questions tagged main

0 votes
1 answer 6 views
Problem: Does anyone have an answer: Exception in thread "main"?
asked Jun 7 Jennifer Watkins 880 points
0 votes
1 answer 13 views
Problem: Is anyone available to assist me and resolve this issue? Could not find or load main class java cmd
asked May 19 Ifra 43.4k points
0 votes
1 answer 15 views
Problem: I want to ask you if a variable declared inside main method is an instance variable or a local variable.
asked May 18 Irenka Kiri 85.5k points
0 votes
1 answer 12 views
Problem: Which of the following is not a valid java identifier? a. 123java b. main c. java1234 d. {abce e. )whoot
asked May 16 Irenka Kiri 85.5k points
0 votes
1 answer 15 views
Problem: I want to ask you if a variable declared inside main method is an instance variable or a local variable. This is the code: public class App { public static void main(String[] args) { Animal fish = new Fish(); ... } } I'm watching a video tutorial from Udemy and the instructor say that fish is an instance variable. I thought that a variable declared inside a method is a local variable.
asked May 4 anika11 32.2k points
0 votes
1 answer 14 views
Problem: I want to ask you if a variable declared inside main method is an instance variable or a local variable. This is the code: public class App { public static void main(String[] args) { Animal fish = new Fish(); ... } } I'm watching a video tutorial from Udemy and the instructor say that fish is an instance variable. I thought that a variable declared inside a method is a local variable.
asked May 4 anika11 32.2k points
0 votes
1 answer 12 views
Problem: Please can anyone tell me the right procedure to do it? Why the main method is static in java
asked Apr 27 Ifra 43.4k points
0 votes
1 answer 7 views
Problem: Any ideas on how to fix this > When a java application starts, what is the name of the method that is executed?
asked Apr 26 ummeshani 10.8k points
0 votes
1 answer 11 views
Problem: I want to ask you if a variable declared inside main method is an instance variable or a local variable. This is the code: public class App { public static void main(String[] args) { Animal fish = new Fish(); ... } } I'm watching a video tutorial from Udemy and the instructor say that fish is an instance variable. I thought that a variable declared inside a method is a local variable.
asked Apr 26 anika11 32.2k points
0 votes
1 answer 29 views
Problem: I want to ask you if a variable declared inside main method is an instance variable or a local variable. This is the code: public class App { public static void main(String[] args) { Animal fish = new Fish(); ... } } I'm watching a video tutorial from Udemy and the instructor say that fish is an instance variable. I thought that a variable declared inside a method is a local variable.
asked Apr 24 sumaiya simi 43.9k points
0 votes
1 answer 13 views
Problem: How can you explain very well, to a beginner, the meaning of String args[] and the use of static in the following excerpt? class FirstApp { public static void main(String[] args) { ... } }
asked Apr 20 munim01 21k points
0 votes
1 answer 5 views
Problem: I am having trouble with a simple hello world program lol! Im hoping someone can shed some light on this. So the error im receiving is the following: $ javac Hello.java $ java Hello Exception in thread "main" java.lang.NoSuchMethodError: main So by the error, I can see that ... public static void main(String argv) { System.out.println("hello world"); } } I'm on Mac OS/X if it's any help.
asked Apr 18 munim01 21k points
0 votes
1 answer 5 views
Problem I understand what public, static, and void mean, but what does (String[] arguments) mean? Can anyone please suggest
asked Apr 10 neeraj 10.5k points
0 votes
1 answer 9 views
Problem: I need help in resolving this problem: int main vs void main c++
asked Apr 9 rakib1 51.5k points
0 votes
1 answer 6 views
Problem: Please help me to solve it out : difference between void main and int main
asked Apr 9 rakib1 51.5k points
1 vote
1 answer 8 views
Problem: Can someone please help fix this uncaught error : public static void main meaning in java
asked Mar 31 MUHAMMAD MUNEEB 83k points
1 vote
1 answer 8 views
Problem: I am unable to find out the solution, Please solve it : public static void main string args
asked Mar 31 MUHAMMAD MUNEEB 83k points
1 vote
1 answer 9 views
Problem: Please help me to solve it out : public static void main(string args)
asked Mar 31 MUHAMMAD MUNEEB 83k points
1 vote
1 answer 6 views
Problem: Why I got the error : public static void main(string args) explain
asked Mar 31 MUHAMMAD MUNEEB 83k points
1 vote
1 answer 6 views
Problem: How can I deal with this problem : public static void main(string args) in java
asked Mar 31 MUHAMMAD MUNEEB 83k points