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

Which of the following is not a characteristic of Java?

A). Static Typing

B). Dynamic Typing

C). Strongly Typed

D). Weakly Typed

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

A). Java code can run on any platform

B). Java code runs only on Windows

C). Java code runs only on Linux

D). Java code runs only on macOS

What is the ownership of Java?

A). Oracle

B). Microsoft

C). Google

D). Apple

Which of the following is not a Java application domain?

A). Artificial Intelligence

B). Database Management

C). Gaming

D). Social Networking

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

What type of applications can be developed using Java?

A). Mobile, Desktop, Web

B). Mobile, Desktop

C). Mobile, Web

D). Desktop, Web

What is the Java Virtual Machine (JVM)?

A). Runtime Environment

B). Integrated Circuit

C). Compiler

D). Operating System

What is the significance of Java's community support?

A). Knowledge Sharing

B). Limited Resources

C). Lack of Innovation

D). Slow Development

What advantage does Java offer for programmers familiar with C++ and C#?

A). Similar Syntax and Principles

B). Different Syntax and Principles

C). Limited Interoperability

D). No Advantage

How does Java facilitate code organization and reuse?

A). Object-Oriented Principles

B). Procedural Programming

C). Spaghetti Code

D). Copy-Paste Approach