Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Debis

  1. Excellent. Classes in different files. That's where my doubt was. Thanks dear.
  2. Can you please elaborate with a small example of 2 classes and one main method? I just want to check the usage of curly braces of classes with respect to the main class.
  3. What's the difference between a Method and a Constructor? Only in the name?
  4. I have 2 questions: 1. Is it the norm that a Java program can only have One class? 2. Is a Class in Java always"Public"? If any of your answers is a No, can you please show a simple example program with System.out.println(). I'm a beginner, so, sorry if these questions appear stupid to you.
  5. I want to create method for accepting arguments for an array. I want to declare the arguments inside main method. Then want to use the return statement in my method to display the array elements. How can I do that? Please help as I am a beginner.
  • Create New...