+ 2

What are objects,classes,instances,and methods in java and how do they relate? What is static void new and args?

24th Nov 2017, 3:33 PM
Unidentified
Unidentified - avatar
7 Respostas
+ 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
24th Nov 2017, 4:00 PM
Dmitrii
Dmitrii - avatar
+ 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.
24th Nov 2017, 3:41 PM
Dmitrii
Dmitrii - avatar
+ 2
void is an expression when we want to declare that a certain function will not return anything to the calling code
24th Nov 2017, 3:42 PM
Dmitrii
Dmitrii - avatar
+ 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
24th Nov 2017, 3:44 PM
Dmitrii
Dmitrii - avatar
+ 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
24th Nov 2017, 3:45 PM
Dmitrii
Dmitrii - avatar
+ 2
what does calling code mean?
24th Nov 2017, 3:46 PM
Unidentified
Unidentified - avatar
+ 2
after it is completed of course
24th Nov 2017, 4:01 PM
Dmitrii
Dmitrii - avatar