Sunteți pe pagina 1din 6

Q: What is abstract modifier?

A: A modifier used to create template classes.

Q: What is abstract class?


A: A template class that contains such things as variable declarations and methods, but
cannot contain code for creating new instances.

Q: What is application ?
A: Stand-alone program that can be run directly from the command line.

Q: What is argument ?
A: values passed to variables are called arguments.

Q: What is array?
A: A single- or multidimensional group of variables.

Q: What is binary operator?


A: An operator that acts on two values and returns one value.

Q: What is block ?
A: A section of code beginning and ending with curly braces {}. The statements are
grouped so they can be used together to accomplish a certain task or so that they can be
executed when a particular condition is met.

Q: What is Boolean ?
A: A data type that can be either true or false.

Q: What is Boolean literal?


A: A literal declared with the keywords true or false.

Q: What is catch?
A: Code that realizes an exception has occurred and deals with it appropriately. See also
try.

Q: What is char data type?


A: A 16-bit unsigned integer that represents a Unicode value.

Q: What is character literal?


A: A single character value. .

Q: What is class library?


A: A set of classes..
Q: What is class variable?
A: A variable that is available to all instances of a class.

Q: What is constructor?
A: A special method used in the initialization of an object.

Q: What is data type?


A: Defines the kind of data that can be stored in a variable.

Q: What is exception?
A: it is an abnormal condition (runtime error).

Q: What is final ?
A modifier that indicates an object is fixed and cannot be changed.

Q: What is finally?
A: Used to perform any necessary cleanup if an exception occurs. The finally
statement ensures that a section of code will be run.

Q: What is keyword ?
A:A reserved word that can be used only as it is assigned in Java. Here is a complete list
of reserved words in Java:

abstract
boolean
break
byte
byvalue
case
cast
catch
char
class
const
continue
default
do
double
else
extends
false
final
finally
float
for
future
generic
goto
if
implements
import
inner
instance of
int
interface
long
native
new
null
operator
outer
package
private
protected
public
rest
return
short
static
super
switch
synchronized
this
threadsafe
throw
transient
true
try
var
void
while

Q: What is identifier?
A: A Java reserved word or title given to variables, classes, and methods.

Q: What is inheritance ?
A: A methodology whereby the code that was developed for one use can be extended for
use elsewhere without having to actually make a copy of the code.

Q: What is input stream ?


A: A data stream that is accepted and processed by a process looking for incoming data.

Q: What is instance?
A: One specific object within the class of objects.

Q: What is instance variable ?


A:A variable particular to an instance of a class.

Q: What is integer ?
A: A whole number, such as 1 and 5280.

Q: What is interface ?
A: Used to define the structure of a set of methods that will be implemented by classes
yet to be designed and coded.
Q: What is literal?
A: Represents data in Java. It is based on character and number representations. The
types of literals are integer, floating-point, boolean, character, and string.

Q: What is method?
A: A function that reports back a status.

Q: What is modifier ?
A: Used to alter certain aspects of classes. Modifiers are specified in the declaration of a
class before the class name.

Q: What is native ?
A: Methods implemented in a platform-dependent language, such as C or C++.

Q: What is new ?
A: The command in Java that creates a new instance of a reference data type.

Q: What is null?
A:No value is assigned to a variable.

Q: What is operator?
A: A symbol used for arithmetic and logical operations.

Q: What is output stream ?


A:A data stream that is generated by a producer process.

Q: What is package ?
A: To group together a variety of classes and/or interfaces that perform similar functions.

Q: What is primitive data type ?


A: A data type that can have only one value at a time and is the simplest built-in form of
data within Java.

Q: What is private ?
A: A modifier that specifies only the current class can call this method or variable. When
you use this modifier, you are excluding subclasses of the class as well.

Q: What is private protected?


A: A modifier is a special combination of private and protected access modifiers. This
modifier specifies that only the class in which the method or variable is defined can call
the method or variable, and does not exclude subclasses of the class, which can access the
method.

Q: What is protected ?
A: A modifier that specifies that only classes in the current package in which the method
or variable is defined can call the method. This allows access for objects that are part of
the same application, but not to other applications. .

Q: What is reserved word ?


A:A word that can be used only as it is assigned in Java.

Q: What is separator?
A: Divides code into segments.

Q: What is single inheritance ?


A: The concept that a class can only have one superclass.

Q: What is statement ?
A: Any line or lines of code ending in a semicolon. Statements may be an expression, a
method call, or a declaration.

Q: What is static?
A: modifier A modifier that is used to specify a method that can be declared only once.
No subclasses are allowed to implement a method of the same name.

Q: What is static variable?


A: A variable that exists in only one location and is globally accessible by all instances of
a class. See also class variable.

Q: What is stream?
A: Allows a Java application to communicate with files, networks, devices, other
applications, and even among threads within the same application.

Q: What is string literal ?


A: A sequence of characters enclosed in double quotes, such as "This is a string
literal".

Q: What is subclass ?
A: Extends the superclass and creates a new variation of the class. Inherits the
characteristics of the preceding class.

Q: What is super?
A:A reference to the superclass. It is often used as a shortcut or explicit way to reference
a member in the superclass of the current class.

Q: What is superclass ?
A:The top-level class of every application.
Q: What is template classes?
A: Classes that are normally used to provide a superclass for other classes.

Q: What is this ?
A: Allows the current instance of a variable to be explicitly referenced.

Q: What is thread ?
A: Provides Java with the capability to have a single application easily run multiple
concurrent code execution.

Q: What is token ?
A: The basic elements of the Java language. At compile time, the javac compiler takes
the code and pulls out these basic building blocks for further processing.

Q: What is try ?
A: Executes a block of code that may generate (throw) an exception. See also catch.

Q: What is unary operator?


A: An operator that manipulates a single value.

Q: What is void?
A: A special return type in Java. void indicates that there is no return type of any kind.
This is used for methods that have no need to return anything to the calling program, or
that only modify method arguments or global variables.

S-ar putea să vă placă și