Can a class have 2 constructors?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

How to find the length and capacity of a string buffer ?

2 Answers  


What is static block?

0 Answers  


If a multi threaded Java program has started numerous number of threads, at any point in time how to know which thread is currently executing/running ?

7 Answers   Accenture, College School Exams Tests, iFlex, NIIT,


What is a copy constructor in java?

0 Answers   Amazon,


How does Vector implement synchronization?

4 Answers   Ness Technologies,






Is 0 a real number?

0 Answers  


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 Answers  


We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.

0 Answers   Symphony,


In java, how we can disallow serialization of variables?

0 Answers  


What are the difference between composition and inheritance in java?

0 Answers  


Does java vector allow null?

0 Answers  


Can we cast any other type to boolean type with type casting?

0 Answers  


Categories