Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

List the keywords which are used in java 1.1?

The list of keywords which are used in java 1.1 are given below:

Keyword

Purpose

boolean

declares a boolean variable or return type

byte

declares a byte variable or return type

char

declares a character variable or return type

double

declares a double variable or return type

float

declares a floating point variable or return type

short

declares a short integer variable or return type

void

declare that a method does not return a value

int

declares an integer variable or return type

long

declares a long integer variable or return type

while

begins a while loop

for

begins a for loop

do

begins a do while loop

switch

tests for the truth of various possible cases

break

prematurely exits a loop

continue

prematurely return to the beginning of a loop

case

one case in a switch statement

default

default action for a switch statement

if

execute statements if the condition is true

else

signals the code to be executed if an if statement is not true

try

attempt an operation that may throw an exception

catch

handle an exception

finally

declares a block of code guaranteed to be executed

class

signals the beginning of a class definition

abstract

declares that a class or method is abstract

extends

specifies the class which this class is a subclass of

final

declares that a class may not be subclassed or that a field or method may not be overridden

implements

declares that this class implements the given interface

import

permit access to a class or group of classes in a package

instanceof

tests whether an object is an instanceof a class

interface

signals the beginning of an interface definition

native

declares that a method is implemented in native code

new

allocates a new object

package

defines the package in which this source code file belongs

private

declares a method or member variable to be private

protected

declares a class, method or member variable to be protected

public

declares a class, method or member variable to be public

return

returns a value from a method

static

declares that a field or a method belongs to a class rather than an object

super

a reference to the parent of the current object

synchronized

Indicates that a section of code is not thread-safe

this

a reference to the current object

throw

throw an exception

throws

declares the exceptions thrown by a method

transient

This field should not be serialized

volatile

Warns the compiler that a variable changes asynchronously

Two another keywords, const and goto, are reserved through Java but are not actually implemented. This permitted compilers to produce better error messages if these general C++ keywords are improperly used in a Java program.

Java 1.2 adds the strictfp keyword to declare in which a method or class must be run along with exact IEEE 754 semantics.

Java 1.4 adds the assert keyword to specify assertions.

Java 5 adds assert and enum.

true and false appear to be missing from this list. Actually, they are not keywords but rather boolean literals. You still can't use them as a variable name by.

Java, Programming

  • Category:- Java
  • Reference No.:- M9546905

Have any Question?


Related Questions in Java

Solving 2nd degree equationsbull write the following java

Solving 2nd degree equations • Write the following Java methods • boolean real-sols(double a, double b, double c): it returns true if the 2nd degree equation ax2 + bx + c has real solutions • double solution1(double a, d ...

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

Answer the following question whats the difference public

Answer the following Question : What's the difference public inheritance and private inheritance? What can derived classes inherit from base classes? What cannot be inherited from base classes?

Can someone please help me with the following java

can someone please help me with the following java question The input is an N by N matrix of nonnegative integers. Each individual row is a decreasing sequence from left to right. Each individual column is a decreasing s ...

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

Assignment game prototypeoverviewfor this assessment task

Assignment: Game Prototype Overview For this assessment task you are expected to construct a prototype level/area as a "proof of concept" for the game that you have designed in Assignment 1. The prototype should function ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As