click below
click below
Normal Size Small Size show me how
Stack #4536145
| Question | Answer |
|---|---|
| File extension name of a java file? (.java | .javac | .javax | .class) | .java |
| True | |
| false | |
| true | |
| Correct command for running a java application named `Hello.java` using console? (`javac Hello.java` | `javac Hello.txt` | `java Hello` | `java Hello.txt`) | java Hello |
| The goal in developing netbeans was to write a Delphi- like Java IDE in Java for the first time. | true |
| What is the name of the class in this program: `class HelloJava{ public static void main(String args[ ]){ System.out.println(“Hello Java”); } }`(`String args` | `HelloJava` | `System` | `main`) | HelloJava |
| A file that is compiled to produce bytecode file? (word file | class file | procedures | java source code) | java source code |
| A valid Identifier or name in Java language can start with which character? (option2: $, _ | both option1 and option2 | option1: a-z, A-Z | 0-9) | both option1 and option2 |
| True | |
| A java edition that is It is developed using the Java Community Process? (Micro Edition | Standard Edition | Enterprise Edition) | Enterprise Edition |
| Most IDEs today doesn't have GUI modeling utilities that simplify the development of UIs. | false |
| `long` has a value that ranges from -32768 to 32767 | false |
| Java Wrapper Classes are used in converting one data type into another data type. | true |
| A feature of Netbeans that makes it easy to create, deploy and import java beans. (Java 2 Platform, Micro Edition (J2ME) MIDP development | Web Services Development | Enterprise Java Beans (EJB) Development) | Enterprise Java Beans (EJB) Development |
| The __________ creates a software simulation of a CPU and memory and handles all communication between the Java program and the underlying operating system and hardware.(JMV | MJV | JVM | JJM) | JVM |
| A function in C language is similar to what in Java language? (Member | None of the above | Variable | Method) | Method |
| false | |
| What are the valid White Spaces available in Java language?(Enter | All the above | Tab | Space) | All the above |
| `println()`provides string formatting. | false |
| `static` is a state of a method | true |
| `byte` has a maximum value of 128 | false |
| All methods and variables in Java language are kept inside a Class? | true |
| The `main` method is declared `public` so that it is accessible as part of the public interface of the program. | true |
| The class file is normally compiled to produce the bytecode file (.class file) which is normally interpreted by the Java virtual machine (JVM). | False |
| `short` has a width of 2 bytes | true |
| A documentation or javadoc comment is enclosed between `/**` and `*/` | true |
| true | |
| A feature of netbeans with wizards for creating web services and web services clients, providing the basic (java/wsdl) code needed. (Enterprise Java Beans (EJB) Development | Web Services Development) | Web Services Development |
| C++ is a general-purpose, concurrent, class-based, object-oriented language that is specifically designed to have as few implementation dependencies as possible. | False |
| The identifier name may be a reserved word. | false |
| In standalone Java applications, which method is mandatory?(display method | show method | print method | main method) | main method |
| The `System` keyword defines a template for an object of derived type HelloWorld | false |
| A java edition that provides a robust, flexible environment for applications running on embedded and mobile devices in the Internet of Things(Enterprise Edition | Micro Edition | Standard Edition) | Micro Edition |
| Syntax highlighting for Java, XML, HTML, CSS, JSP and IDL, full support of new JDK 1.5 features, live parsing/error marking, popup javadoc, code completion, and fast class importing. (Award Winning Debugger | Code Editor | Refactoring) | Code Editor |
| An IDE doesn't have Compiler and/or interpreter. | false |
| `nextB()` reads a byte value from the user. | false |
| A string is enclosed with double quotation marks. | true |
| Netbeans started as a student project called Selfie | false |
| `\n` is an escape character for new line. | true |
| It reads a `boolean` value from the user.(`nextBoolean` | `nextBool` | `nextBoolean()` | `nextBool()`) | nextBoolean() |
| One of the tools for Object oriented design doesn't include class browser | false |
| An IDE may have Various tools to simplify the construction of a GUI. | true |
| `float` has a width of 8 bytes | false |
| A single-line comment starts with `//` | true |
| One of the tools for Object oriented design includes object inspector | true |
| `printf()`provides string formatting. | true |
| What is the need to mention `static` before `main` method?(Option2:To make main method as class method common to all instances | Option1 : To call main method without creating an object of class | None of the above | Both Options 1 and 2) | Both Options 1 and 2 |
| `nextInteger()` reads a integer value from the user. | false |
| `out` is a `private static` field | false |
| `nextLong()` reads a long value from the user. | true |
| Netbeans Matisse doesn't support internationalization, and industrial look-and-feel rules, which is very important for large scale application meant to be spread world wide. | false |
| A feature of Netbeans for renaming, changing and moving of various objects, field encapsulation and usage finding.(Award Winning Debugger | Refactoring | Code Editor) | Refactoring |
| `API` stands for Application Programmable Interface | false |
| The `main` method is declared `private` so that it is accessible as part of the private interface of the program. | false |
| The command to compile a java source code. (`javadoc` | `java` | `javac`) | javac |
| `nextFloat()` reads a float value from the user. | true |
| `double` data type has a width of 16 in bytes. | false |
| It means that Java can be programmed without extensive programmer training while being attuned to current software practices (Robust and secure | Simple, object-oriented, and familiar | High performance | Architecture neutral and portable) | Simple, object-oriented, and familiar |
| What is the name of the class in this program: `class Square{ public static void main(String args[ ]){ System.out.println(“This is a Square”); } }`(`Square` | `main` | `System` | `String args`) | Square |
| It means that the Java interpreter can execute the bytecodes directly on any machine to which the interpreter(Robust and secure | Simple, object-oriented, and familiar | Architecture neutral and portable | Interpreted, threaded, and dynamic) | Interpreted, threaded, and dynamic |
| true | |
| `print()` prints string inside the quotes then the cursor moves to the beginning of the next line | false |
| `main` method is `void` because the Java interpreter does not expect to receive or process any output from the class. | true |
| What is the default return type of a method in Java language?(`int` | `void` | `short` | None of the above) | void |
| What is the use of Access modifier `public` in Java language?(To hide the main method from misuse | To call the main method outside of Class or Package by JVM | To protect main method | None of the above) | To call the main method outside of Class or Package by JVM |
| `String` is a derived data type | true |
| Who developed Java?(James Gosling | None of the options | Dennis Ritchie | Bjarne Stroustrup) | James Gosling |
| The `class` keyword defines a template for an object of derived type HelloWorld | true |
| A multi-line comment enclosed within `/* …. **/` | false |