What is a default constructor and also define copy contrucyor?


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

Post New Answer

More Core Java Interview Questions

Can we have two main methods in a java class?

0 Answers  


Why is core java important?

0 Answers  


What modifiers are used for interface declaration?

7 Answers  


Is java a virus?

0 Answers  


public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?

6 Answers  






explain the life cycle of thread?

10 Answers   CTS, NIIT, TCS,


Which collection is ordered in java?

0 Answers  


Can a main method be overloaded?

0 Answers  


Is string is a data type in java?

0 Answers  


What do you mean by formatting?

0 Answers  


What do you understand by a Static Variable?

0 Answers   CGI,


difference between arraylist and linkedlist otherthan performance

2 Answers   L&T,


Categories