A. | Non-primitive data types can be created using the primitive data types. |
B. | Non-primitive data types can contain only primitive data types. They can not contain other non-primitive/user-defined data types in them. |
C. | Non-primitive data types can contain both primitive data types and other non-primitive/user-defined data types. |
D. | None of the above |
HelloWorld.java
", what are the commands for compiling it and running it.
// HelloWorld.java
class Helloworld
{
public static void main(String s[])
{
System.out.println("Hello World");
}
}
A. |
javac HelloWorld.java
|
B. |
javac HelloWorld.java
|
C. |
javac HelloWorld.java
|
D. |
javac HelloWorld.java
|
A. | Strongly typed language means the type of the variable is decided depending on its value |
B. | Strongly typed language means once a variable is declared as certain type, then the type can not be changed and its value can not be modified. |
C. | Strongly typed language means once a variable is declared as certain type, then the type can not be changed but its value can be changed to some other value of the same data type. |
D. | None of the above |
A. | Primitive data types can not be directly used in any program. We have to create a user-defined data type and then use it. |
B. | Primitive data types can be used to create non-primitive or user-defined data types. |
C. | Primitive data types are classified into four groups. They are Integers, Floating Points, Characters and Booleans |
D. | Primitive data types are included by default as part of the Java Programming Language |
A. | 1. Run It |
B. |
1. Compile It 2. Run It |
C. |
1. Save the file 2. Compile It 3. Run It |
D. |
1. Save the file 2. Compile It 3. Send an email with the file as attachment 4. Run It |