What is the difference between a constructor and a method?
No Answer is Posted For this Question
Be the First to Post Answer
Package1 and Package2 both have a method name lets say "methodA" with different implementation. When I import both the packages in a java class how can I use both the methods?
What is a variable in java?
If a variable is declared as private, where may the variable be accessed?
What is synchronization and why is it important in java programming?
What is character in data type?
i need to know the website that i can compile and run a java code in online.(while system doesn't contain any jdk and jre)
What is byte code and why is it important to java’s use for internet programming?
If I will write String s=new String("XYZ"); String s1=new String("XYZ"); if(s.equals(s1)){ sop("True"); } else{ sop("False"); } This program will give me "True". But When I am creating my own class suppose class Employee{ public Employee(String name); } Employee e= new Employee("XYZ"); Employee e1 = neew Employee("XYZ"); if(e.equals(e1)){ sop("True"); } else{ sop("False"); } Then it will give the output as "False". Can I know what is happening internally?
What is overloading and overriding in java?
What is compareto?
Is a copy constructor?
Can a method inside a interface be declared as final?