Easy Tutorial
For Competitive Exams

Java Programming Introduction Test Yourself

1482.Java Source Code is compiled into ______________.
.Exe
Bytecode
.Obj
Source Code
1483.Which of the tool is used to compile java code ?
javac
jar
javadoc
java
1484.jar stands for _____________.
Java Archive Runner
Java Archive
none of these
java Application Runner
1485.Which of the following is not a keyword in Java.
abstract
finalize
boolean
assert
1486.Single line comment starts with _________ in Java.
/*
//
None of these
/**
1487.The new operator
returns a pointer to a variable
creates a variable called new
obtains memory for a new variable
tells how much memory is available
1488.Which of the following statement is correct?
For positive numbers, result of operators >> and >>> are same
Java provides two operators to do left shift <<< and <<
>> is the zero fill right shift operator
>>> is the signed right shift operator
1489.Java language has support for which of the following types of comment ?
block, line and javadoc
javadoc, literal and string
javadoc, char and string
single, multiple and quote
1490.Command to execute a compiled java program is :
javac
java
run
execute
1491.The java compiler
creates executable
translates java source code to byte code
creates classes
produces java Interpreter
1492.The order of the three top level elements of the java source file are
Import, Package, Class
Class, Import, Package
Package, Import, Class
Random order
1493.The minimum value of char type variable is
‘u0020’
‘u00ff’
‘u0010’
‘u0000’
1494.Java uses ___ to represent characters
ASCII code
Unicode
Byte code
None of the above
1495.Which one is not supported by OOP?
Abstraction
Polymorphism
Encapsulation
Global variables
1496.Java programs are
Platform-dependent
Interpreter-dependent
Platform-independent
Interpreter-independent
Share with Friends