Computer Science, asked by pragyapathak12, 11 months ago

what is the difference between - and -- in terms of java ...?

Answers

Answered by nhkmk786
1
\color{red}\huge\bold\star\underline\mathcal{Hey\:Mate}\star

Here is your answer...☺☺☺
➡➡➡➡➡➡➡➡➡➡➡➡➡➡➡➡➡➡➡

In simple terms a function is one which is declared outside a class and a method is something which isdeclared inside a class and is called using instance of the class. Function or method is the same. While, Functionis a terminology of C++, method is terminology for function in Java.

✔✔✔✔✔✔✔✔✔✔✔✔✔✔✔✔✔✔✔
I hope this answer is helpful to u...❤❤❤

Keep Asking...✌✌✌

✨✨✨If help you. Mark my answer as a brainliest✨✨✨
<marquee><font color=red>❤❤❤❤ THANK YOU ❤❤❤❤

pragyapathak12: talk to u later
pragyapathak12: hlw
pragyapathak12: ^_^
pragyapathak12: nothing
Answered by AqeelAhmad
1
- is having usual meaning
but -- subtracts 1 from a number.

If it is after a number then first it executes and then gives outside.

If it is before a number then it executes and gives the output simultaneously.

pragyapathak12: thanks
AqeelAhmad: your most welcome
pragyapathak12: ^_^
Similar questions