Posts

Showing posts from September, 2021

java variables | variables in java | what is java | how to use variable in java |

Image
                                                                       Variables in java variables type in java : Integer -  Integer it is a only to access a as numbers only absolute numbers only                    " int " is keyword of the integer variables Float -     Float is a like a non absolute variables like 3.8 (or) 7.9 " float " is a                            keyword of the float String -        String datatype is a using some words (or) sentence also used  character - character is like a one letter used here that letter not only define as a                       Captial letter (or) small letter it should have both is assesible but it                           have only one letter using at the time and the keyword of the                                     character  is " char " Double - it is also like a float but it should have restricted to put the values in                         after  the dot Integer datatype : -------------------------

what is java | learn java | java Comments | what is comments in java

Image
                                                                         Java Comments That Comment is used give a good explaination of Your Code The Simbol of the commend is Double slash like "//" If You comment a multiple line use  "/*" that should start commend before "*/" it is used at end of the comments  Single Line Comments: -------------------------------------------------- |        //This is a comment                 | |System.out.println("Hello World");| -------------------------------------------------- Multi-Line Comments: --------------------------------------------------- |        /*This is a comment   for multi| |line comment code */                       | |System.out.println("Hello World");| --------------------------------------------------

what is java | how to use Java | best Programming Language | how to create a class | java basic syntax | what is syntax | syntax in java

Image
                                                                          Java Syntax Sample Code: ---------------------------------------------------------- | class demo                                                | | {                                                                                   | |    public static void main(String[] args)  | |    {                                                                                | |         System.out.println("Hello world");  | |     }                                                                              | | }                                                                                  | --------------------------------------------------------- Explaination: Java is Case sensitive In java all class name are file  That means file name and class names are must be same The class and main functions are should start and end with "{}" curvely praces If You want to print any thing on the Java using the