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
What is method reference in java?
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.
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?
Why bytecode is called bytecode?
Explain the difference between abstract class and interface in java?
What problems will occur when you don?t use layout managers?
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 { }
Can a static method be final?
Does garbage collection guarantee that a program will not run out of memory?
What is a treemap in java?
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?