+ 4
Can somebody help me finding out what is the structure of programming in java?
I am finding it difficult to learn java because I don't know the structure. If somebody can help me, I would be very thanked!
5 ответов
+ 1
so in javascript you dont really need to have any order..in java first you have to create main class in that main class you have to create your main function (that is the main part of the program)..so why you need them?
main function is the most important..imagine like this..you want your program to be some kind of calculator..and outside of the main function you create fuction for addition, substraction ,power, root ,etc...in your main function you will call only function that you need..and other wont be called..so the most important thing is to say:if you want something to be executed you must call it in your main function
another very important thing is classes..when you create class and write some code what you want to do you must create object in the main function again ..and from that object you call other functions that are inside your class and from object you can menage those functions ,variables etc...
+ 4
Yeah! JavaScript!
+ 3
Yes! QBASIC and C++!
+ 1
do you know any other language?
+ 1
Since I have got used to C++, I have understood the structure! Check out this example!
https://code.sololearn.com/cve5F3Rc6uaV/?ref=app