0
Would anyone help me by giving solutions?
I'm so interested to learn java. Every friend can help me. I'm so happy to come here. I'm new learner. Happy to join here. I want a class coad example & main method example. I'm not clear that which part is class & which part is main mathod of java coad.
2 odpowiedzi
0
https://code.sololearn.com/cWl9UFYrxju6/?ref=app
hope this will help
0
class abc /* class declaration and abc is a class name */
{ // It is a braces used to contain class
public static void main(String args[]) /* this is a main method */
{ // again we open braces
System.out.println("Hello World"); /* this is method invocation */
}
} /* then close all the braces */
// hope u understand
and u can also check this
https://www.sololearn.com/Course/Java/?ref=app