Core Java (6529)
Advanced Java (552)
Swing (223)
EJB (402)
Java Networking (49)
Hibernate (1009)
Spring Framework (1486)
Java J2EE AllOther (116) Integer.parse Int(bf.readLine(System.out.println("enter value for n["+m+"]:"))); can it run under this
1 3060when we enter the data in the form how it is stored in formbean class setter and getter methods?
1 4799My Question is that i am using
interface X{ void m1(); void m2(); } class Child2 extends Object implements X { public void m1(){ System.out.println("Child2 M1"); } public void m2(){ System.out.println("Child2 M2"); } } public class ParentChildInfterfaceDemo { public static void main(String[] args){ X x = new Child2(); X x1 = new Child2(); x.m1(); x.m2(); x.equals(x1); } } Will the above code work? If yes? Can you please explain why the code x.equals(x1) will work as the equals method is called on interface reference vaiable?
2 5756
What does it mean that a method or field is “static”?
What is the difference between @autowired and @qualifier?
How are destructors defined in java?
How to handle exceptions in structs?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
What is a class loader? What are the different class loaders used by jvm?
What is use of static method?
Why do we need autowiring in spring?
What is jdbc odbc bridge in java?
How can I connect mysql or oracle with java?
What is publish/subscribe messaging?
When throws keyword is used?
What is a connection factory?
What is apache struts vulnerability?
What is a thin client?