+ 3
Explain the code indetail
3 Answers
+ 4
đĄïžJasprit we are here to give the answers in our own language not to copy and paste a website's answer! If you wanna share the website then give link don't copy and paste a answer!
When you copy and paste an answer it looks like you have answered the query at your own :)
So kindly don't do that -
Source from you copy and paste the exact answer -
https://en.m.wikibooks.org/wiki/Java_Programming/Keywords/public
Now I beleive you will not do the same.
Hope you understand đ
+ 5
Really Guntupalli Chandrika ?
Sorry but kindly tell where you are stuck in this code then we can help you directly you are saying that explain the "whole code" in detail. So it's kinda not possible but if you'll tell the part which you wanna understand then we can surely help you.
Hope you understand đ
+ 4
String[] args: It stores Java command line arguments and is an array of type java.lang.String class. Here, the name of the String array is args but it is not fixed and user can use any name in place of it.public static void main(String args[]) or public static void main(String⊠args) to call the main function in java. The main method is called if itâs formal parameter matches that of an array of Strings.
in fourth line you decleared one variable (a) which type is int type which can store Integer values and in expression you write
9%5%5
% this is a Modulo operator it will give Remainder so when you divide 9%5 will will get Remainder 4 than again you write %5
means ((9%5)%5) 9%5 will give 4
and 4%5 if numerator is smaller than denominator then answer will be numerator so Output will be 4 .
and you printing 4 with the help of
System.out.println(a);