How to display all the prime numbers between 1 and n (n is the number, get the input from user)


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

Post New Answer

More Core Java Interview Questions

What is final access modifier in java?

0 Answers  


Can you call a private data from an inner class?

6 Answers  


If an object is garbage collected, can it become reachable again?

0 Answers  


Explain cookies?

2 Answers   Canon,


Can we declare array without size in java?

0 Answers  






What is formatted output?

0 Answers  


What is sorting algorithm in java?

0 Answers  


If I only change the return type, does the method become overloaded?

0 Answers  


Is arraylist ordered in java?

0 Answers  


What are access modifiers?

1 Answers   Infosys,


Can we add two byte variables and assign the result to a byte variable ? b=b1+b2 where b,b1,b2 are byte types

4 Answers   TCS,


what is Portal(web based online portal)?

2 Answers   AIG,


Categories