+ 2
What are objects,classes,instances,and methods in java and how do they relate? What is static void new and args?
7 Réponses
+ 2
when there is a function called inside a main function, the calling code is the main function and the function to be called is code that either will return something or nothing to the calling code
+ 2
class is a data structure, meaning data in a structured way, not just random number.
objects are the representation of a class in the code you write.
methods are the function a class might have and describe the functionality of an object and the accessibility from the outside world.
+ 2
void is an expression when we want to declare that a certain function will not return anything to the calling code
+ 2
new is the memory allocation declaration, meaning that it has a syntax of new Object();, which means that it allocates memory to create an object of class Object
+ 2
args is an array that stores the arguments with which you call the executable of your code, meaning after you pass the stage of compiling
+ 2
what does calling code mean?
+ 2
after it is completed of course