Posts

Showing posts from April, 2022

How to download JDK (Latest Version) on Windows (In Hindi)

Image
In this video I show you how to download/install JDK (Latest Version).On windows  How to download JDK (Latest Version) on Windows (In Hindi) Watch this video,ans if you likeπŸ‘πŸ» it then like this video and do subscribe to my channel and hit the bell πŸ”” icon to get my new video notifications πŸ€—. 

Variables in Java

Variables :- 1)  A variable is a value that can be change 2) Variable is a container that holds the  values while Java program is executed 3) Their are 3 types of Variables :- ‌Local Variables :-  Local variables is declare in inside body of the method.  ‌Instance Variables :- Instance variables is declare in inside the class but outside the method ‌Static variables :- A variable that can be declare with Static is called static variables Example :- class A   //Class declaration { static int a=10 ;    //Static variable void method { int b=20 ;     //Instance variable } public static void main(String args []) { int c=30 ;      //Local variable } }

First Java Program

                                                                               JAVA  /*First Java Program*/ public class Main { public static void main(String[] args)  { System.out.println("Hello World"); } } Output: Hello World

Command Line Argument

 class Commandlineargument {  public static void main(String args[]) {  for(int i=0; i<args.length;i++) {  System.out.print(args[i]);  } } } Output:- javac Commandlineargument.java java Commandliineargument Hello Java Hello Java.