Java Programming Questions
21. |
What is JVM (Java Virtual Machine)? |
|
JVM stands for Java Virtual Machine. It is an abstract computer or virtual computer which runs the compiled java programs.
Actually JVM is a software implementation which stands on the top of the real hardware platform and operating system.
It provides abstraction between the compiled java program and the hardware and operating system.
|
22. |
What are Native methods in Java? |
|
There may be times when you want to call subroutines which are written in some other language other than Java like C++, VB6 etc. |
23. |
Names few Design Patterns used for designing Java applications? |
|
- Singleton
- Factory
- Abstract Factory
- Proxy
- Command
- Builder.
|
24. |
How would you pass a java integer by reference to another function? |
|
Passing by reference s impossible in JAVA but Java supports the objects reference so object is only way to pass the integer by reference. |