This Java program defines a class called FirstJavaProg that contains examples of primitive and wrapper class datatypes as global and local variables. It also contains static and non-static methods to demonstrate method calling and variable scope. The main method creates an instance of FirstJavaProg and calls its myMethod to print out the values of the global variables.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
43 views
Asas
This Java program defines a class called FirstJavaProg that contains examples of primitive and wrapper class datatypes as global and local variables. It also contains static and non-static methods to demonstrate method calling and variable scope. The main method creates an instance of FirstJavaProg and calls its myMethod to print out the values of the global variables.