How to reverse the singly linked list(In Node data members
are(int data,int pointerTONext))


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

Post New Answer

More Java Related AllOther Interview Questions

public class Dog { private int weight; public int getweight(){ return weight; } public void SetWeight(int newWeight){ if (newWeight > 0){ weight = newWeight; } } } public class TestDog { public static void main(String[] args) { Dog d = new Dog(); System.out.println("Dog d's weight is " + d.getWeight()); d.setWeight(42); System.out.println("Dog d's weight is " + d.getWeight()); d.setweight(-42); System.out.println("Dog d's weight is " + d.getWeight()); } } class dog is compiled but there is an error in class TestDog when compiled and the error is with dot notations. I want to kmow why there is error in testdog class when compiled.

3 Answers  


What is interceptors in java?

0 Answers  


how can program polindrome using java

1 Answers  


What is the difference between Enumeration and Iteration interfaces? What is the way of to retreive the objects from these interfaces ?

1 Answers   Cap Gemini,


What is meant by annotations in java?

0 Answers  


what are the steps in JDBC connectivity..???

1 Answers   IBM, SoftCom, TCS,


Please can anybody explain what exactly "the project architecture" means???

0 Answers  


What is data persistence in java?

0 Answers  


Can a method be static and synchronized?

0 Answers  


Who is at risk in java? : java security

0 Answers  


What are the advantages of lambda functions?

0 Answers  


What is meant by pass by reference and pass by value in java?

0 Answers  


Categories