Posts

How to get Output ? How to write output program ? (ch 02)

Chapter 2 :-  Output  Output Syntax :-      System.out.println("Hello World");                                    In java, these syntax is very case sensitive. If you had some mistake in uppercase or lowercase characters then it throws an error. This need to write the exact code.                                     Inside the ("_")quotation we can write our output, In syntax we write "Hello World" if you need some other output, then you can put inside the quotation. In that syntax the println is for print new line, the 'ln' is for new line. If sometimes we need to write the code in same line then it is necessary to not to write 'ln'. For ex :-     System.out.print("Hello World"); Also the semicolon (;) after finishing the code it is also mendat...

What is boilerplate code ? and How to write boilerplate ? (ch 01)

Chapter 01 :- Java Boilerplate Code In our java class, If some topics is not understandable then escape it, we learn all topic in detailed in OPP's. So now just focus on your practical programming work and improve your ideas and build logic it is very important to build logic. Now first we can define a class: Example:-     public class fileName{                      } So don't get confused with that we can learn this topic on detailed if you have any doubt then ask me in comment section. Syntax:- AccessModifier class fileName/className{ } Note:- In our java className or fileName must be same keep this in your mind. this is the syntax of our java boilerplate code, Public is AccessModifier and there are total four AccessModifier. 1)Public (Visible for all users) 80% to ...