No output In Eclipse for a simple java program -


I think I wrote this program very well, it does not give me any error, but it does not give me any Not giving output what's wrong in it? I have looked for other programs to check whether some eclipse is wrong with eclipse, but every other program is running.

Note: I am a newbie learn java, explain the problem in detail I know that I have spelled wrong spell of heritage.

  The legacy of the public class {int a; String B; Legacy (int x, string y) {a = x; B = Y; }} Legacy spreads in class B {int c; B (int j, string of, int el) {super (4, "sir"); A = J; K = b; C = L; } Public static void main (String Arij []) (inheritance OBG 1 = new inheritance (4, "sir"); B obj2 = new B (4, "sir", 5); System.out.println ( "The Man details of the "+ obj1.a +" "+ obj1.b); System.out.println (" man's description of "+ obj2.c);}}  

The error in your code is that the main method is defined in a non-public class B Transfer the main method to the public class or class B. defines the main method of settlement of suburbanization and heritage.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

How to access user directory in lazarus? -

java - Gradle dependencies: compile project by relative path -