Q
What is the default file extension for Java source files?

Answer & Solution

Answer: Option A
Solution:
Java source files typically have a .java extension, distinguishing them from compiled bytecode (.class files) and executable JAR files (.jar).
Related Questions on Average

What is the Java Virtual Machine (JVM)?

A). Runtime Environment

B). Integrated Circuit

C). Compiler

D). Operating System

What is the role of garbage collection in Java?

A). Memory Management

B). File Compression

C). Code Compilation

D). Error Handling

What makes Java suitable for web application development?

A). Robust Server-Side Technologies

B). Dynamic Content Generation

C). Scalability and Performance

D). All of the above

Which of the following statements about Java's security is true?

A). Java has a robust security model

B). Java is not secure

C). Java is highly vulnerable to attacks

D). Java doesn't support security features

What type of applications can be developed using Java?

A). Mobile, Desktop, Web

B). Mobile, Desktop

C). Mobile, Web

D). Desktop, Web

How many devices run Java globally?

A). More than 3 billion

B). More than 1 billion

C). More than 5 billion

D). More than 2 billion

What is one of the reasons for Java's popularity?

A). Ease of Learning

B). Complexity

C). Limited Community Support

D). Proprietary License

Which of the following is a benefit of Java's object-oriented nature?

A). Code Reusability

B). Code Duplication

C). Code Complexity

D). Code Confusion

Which of the following statements about Java's licensing model is true?

A). Java is open-source and free to use

B). Java is proprietary and expensive

C). Java is open-source but requires a license fee

D). Java is proprietary but free to use

Which of the following is a common use of Java?

A). Mobile Applications

B). Video Editing

C). Graphic Design

D). 3D Modeling