Java Programming Questions
17. |
What is the difference between standard Java array and ArrayList class? |
|
ArrayList support dynamic arrays that can grow depending on demand. But traditional JAVA arrays are of fixed length once they are created.
|
18. |
What is the use of JAVAAP tool? |
|
"javap" disassembles compiled Java files and splits out representation of the Java program. This is a useful option when the original source code is not available. |
19. |
In which package is the applet class located? |
|
Applet classes are located in "java.applet" package.
|
20. |
What are inner classes? |
|
Inner classes are nested inside other class.
They have access to outré class fields and methods even if the fields of outer class are defined as private.
|