+ 1

In the beginning of java program...

what does it mean 'public static void' and 'public class'

11th Dec 2016, 5:39 PM
Mehmet Emre Çakal
Mehmet Emre Çakal - avatar
3 Antworten
+ 2
u should complete whole course of java first. its in there. in case u r more curious then public - open to all any functions outside containing class. i.e. can be used by outside functions. static- will remain till end of program. this definition will remain as long as program remain - u will get more as u progress. void - its return type . type of data returned by function. in this case it is void i.e. empty that is nothing is returned. main()- function name of main function , its just name chosen by java developers. complete course u will get all these
11th Dec 2016, 5:49 PM
manish rawat
manish rawat - avatar
+ 1
Static means that the resource (RAM) for the allocated Ressource is already defined at runtime. Static stuff is allocated in the data part of your memory instead of stack or heap. Through using a fixed address your operating system is able to locate the entry point of your program.
11th Dec 2016, 7:41 PM
feye
0
thx. I didn't understand anything , I should go back to course :D
11th Dec 2016, 5:56 PM
Mehmet Emre Çakal
Mehmet Emre Çakal - avatar