Java Bangla Tutorials 90 : static variable (part-2) | Video



website : https://www.studywithanis.com
Facebook : https://www.facebook.com/anisul2010s
Facebook page : https://www.facebook.com/studywithanis/
Proudly WWW.PONIREVO.COM

Source

READ ALSO:  Fly Fishing Tackle: Hardy Demon 5000 Fly Reel Review

16 Comments

  1. if i enter one double digit(10) then it does not show max number (10). if i do no enter negative number then it is show zero……..why it's happen?.plz ans

  2. package arraylist;

    public class Staticclass {

    String name1 = " Anisul islam sir ";

    static String name =" Md likhon ali ";

    public static void main(String[] args) {

    Staticclass ab = new Staticclass();

    String c =ab.name1;

    System.out.println(" " + c);

    System.out.println(" " + Staticclass.name);

    }

    }

  3. Dear bro I am Mahmudul Hasan from Lisbon, portugal. I am really grateful to you for this lecture video it made me understand static variable. Thanks a lot, keep making videos like this

  4. package static_variable;

    public class Student {

    static String University_name = "SEC";

    }

    package static_variable;

    public class Test {
    public static void main(String[] args) {
    System.out.println("University Name : "+Student.University_name);
    }
    }

  5. package StaticVariable;

    public class StaticVariable {
    static String universityName = "SEC";

    }

    package StaticVariable;

    public class StaticVariableTest {
    public static void main(String[] args) {
    //StaticVariable ob = new StaticVariable();
    System.out.println("University Name : "+StaticVariable.universityName);
    }

    }

  6. package staticKeywrd;

    public class Student {

    static String universityname = "SEC";

    }
    package staticKeywrd;

    public class Test {

    public static void main(String[] args) {
    System.out.println("Name: "+Student.universityname);
    }

    }

  7. package oop;

    public class StaticVariable {
    String name ="Aditi";
    static String uniname = "SEC";
    }

    package oop;

    public class StaticVariableTest {
    public static void main(String[] args) {
    StaticVariable ob = new StaticVariable();
    System.out.println("Name is : "+ob.name);

    System.out.println("University Name is : "+StaticVariable.uniname);
    }
    }

  8. package string;

    public class Student {

    static String universityName = "SEC";

    }
    package string;

    public class StringClass {

    public static void main(String[] args) {
    System.out.println("University Name : "+Student.universityName);

    }

    }

  9. package staticv;

    public class Student {

    static String collegename = "SEC";
    }
    package staticv;

    public class test {

    public static void main(String[] args) {
    System.out.println("College name : "+Student.collegename);

    }
    }

  10. ভাইয়াা যদি স্টেটিক ভেরিয়াবলের সাথে অবজেক্ট তৈরি করে কল করি তবে কি কোন সমস্যা হবে

Comments are closed.