+ 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!

1st May 2017, 4:38 PM
Naveen Maurya
Naveen Maurya - avatar
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...
2nd May 2017, 7:12 AM
Leonida17st
Leonida17st - avatar
+ 4
Yeah! JavaScript!
2nd May 2017, 2:47 AM
Naveen Maurya
Naveen Maurya - avatar
+ 3
Yes! QBASIC and C++!
13th Nov 2017, 12:52 PM
Naveen Maurya
Naveen Maurya - avatar
+ 1
do you know any other language?
1st May 2017, 4:52 PM
Leonida17st
Leonida17st - avatar
+ 1
Since I have got used to C++, I have understood the structure! Check out this example! https://code.sololearn.com/cve5F3Rc6uaV/?ref=app
17th Dec 2017, 2:55 PM
Naveen Maurya
Naveen Maurya - avatar