website : https://www.studywithanis.com
Facebook : https://www.facebook.com/anisul2010s
Facebook page : https://www.facebook.com/studywithanis/
Proudly WWW.PONIREVO.COM
Comments are closed.
website : https://www.studywithanis.com
Facebook : https://www.facebook.com/anisul2010s
Facebook page : https://www.facebook.com/studywithanis/
Proudly WWW.PONIREVO.COM
Comments are closed.
Copyright © | Ponirevo
alhamdulillah
done
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
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);
}
}
?
Sir, please make some video about Java projects..
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
great vai
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
ভাইয়াা যদি স্টেটিক ভেরিয়াবলের সাথে অবজেক্ট তৈরি করে কল করি তবে কি কোন সমস্যা হবে
Best
tnx