What are the different approaches to implement a function to generate a random number?


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

Post New Answer

More Core Java Interview Questions

What do you mean by local variable and instance variable?

0 Answers  


What is meant by interface?

0 Answers  


What is a method vs function?

0 Answers  


Can bool be null?

0 Answers  


how can be object class inherited to all class in a program when java does not support multiple inheritance??

4 Answers  






Is a method a function?

0 Answers  


Given: 10. interface A { void x(); } 11. class B implements A { public void x() { } public voidy() { } } 12. class C extends B { public void x() {} } And: 20. java.util.List list = new java.util.ArrayList(); 21. list.add(new B()); 22. list.add(new C()); 23. for (A a:list) { 24. a.x(); 25. a.y();; 26. } What is the result? 1 Compilation fails because of an error in line 25. 2 The code runs with no output. 3 An exception is thrown at runtime. 4 Compilation fails because of an error in line 20.

3 Answers  


What do you mean by object?

0 Answers  


What is meant by event handling in SAX parser?

1 Answers   Ness Technologies,


I want to re-reach and use an object once it has been garbage collected. How it's possible?

0 Answers  


what is real-time example of runtime polymorphism and compile time polymorphism

4 Answers   SLK Group,


Why is the singleton pattern considered to be an anti pattern?

0 Answers  


Categories