Home > Back-end >  Who can tell me
Who can tell me

Time:04-04

Public class Job {
Public static String name="Java engineer
"}
Public class Person {
Public static void main (String [] args) {
System. The out. Printing (" access to the class level variables: "+ Job1 is. Name)
}
}
All Java statement can have only one class is no, Job1 is behind. The name is not used

CodePudding user response:

Your problem is not quite understand,
What is Java statement can only have one class?
A Java file can have only one public class?
  • Related