we have syntax like for(int var : arrayName)
this syntax is to find whether a number is in the array or
not.but i want to know how to find that number's location.


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

Post New Answer

More Core Java Interview Questions

What are classloaders?

0 Answers  


How to override equals() and hashCode() method in java?

1 Answers   Wipro,


Explain about transient variables in java?

0 Answers  


Why is multiple inheritance not supported in java?

0 Answers  


What are the disadvantages of object oriented programming?

0 Answers  


What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?

0 Answers  


What is this keyword used for?

0 Answers  


Can a variable be local and static at the same time?

0 Answers  


What is busy spin, and why should you use it?

0 Answers  


Why char array is favored over string for the storage of passwords?

0 Answers  


How do you download stubs from Remote place?

0 Answers  


Explain the concept of polymorphism with examples?

6 Answers   Summation Tech,


Categories