Can we define a package statement after the import statement in java?
Answer / Shiva Tyagi
No, in Java the package statement must be the first line of a source file, before any imports.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can the interface be final?
What is the difference between a factory and abstract factory pattern?
What checkbox method allows you to tell if a checkbox is checked?
What is super?
why java not supproting multiple inheritance?
Can list be final in java?
Is java call by reference?
What is the difference between a local variable and an instance variable?
What is application system?
Is 0 a prime number?
Is delete, next, main, exit or null keyword in java?
Explain about features of local inner class?