Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.


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

Post New Answer

More Core Java Interview Questions

What is method reference in java?

0 Answers  


when i write string s1="java"; in one program(application) and string s2="java"; in another application on the same jvm will both objects s2,s2 will refer to same memory location where "java" is stored in string pool.

2 Answers  


There are 2 methods in a class. Both have the same method signature except for return types. Is this overloading or overriding or what is it?

9 Answers   KPIT,


Why bytecode is called bytecode?

0 Answers  


Explain the difference between abstract class and interface in java?

0 Answers  






What problems will occur when you don?t use layout managers?

1 Answers  


I Have a class abstract with one abstract method, so that method should override in the subclass, but i dont want to override, if i am not override what will happen? If compilation will occur then i dont want to give compilation error, then what we need to do??? See the sample program. public abstract class AbstractExample { public abstract void sampleMethod(); } public class AbstractExampleImple extends AbstractExample { }

2 Answers   Mphasis,


Can a static method be final?

0 Answers  


Does garbage collection guarantee that a program will not run out of memory?

1 Answers  


What is a treemap in java?

0 Answers  


In Java why we write public static void main(String args[]) why not main()?

46 Answers   Aptech, GE Healthcare, Infosys, Microsoft, New Horizon, Practical Viva Questions, TCS, Wipro,


What is serial version uid and its importance in java?

0 Answers  


Categories