Java OCA OCP Practice Question 738

Question

Which of the following statements is correct?

Select 1 option

  • A. new, delete and goto are keywords in the Java language
  • B. try, catch and thrown are keywords in the Java language
  • C. static, unsigned and long are keywords in the Java language
  • D. exit, class and while are keywords in the Java language
  • E. return, goto and default are keywords in the Java language


Correct Option is  : E

Note

Following is a list of Java keywords :

abstract    continue    for    new    switch 
assert    default    goto    package    synchronized 
boolean    do    if    private    this 
break    double    implements    protected    throw 
byte    else    import    public    throws 
case    enum    instanceof    return    transient 
catch    extends    int    short    try 
char    final    interface    static    void 
class    finally    long    strictfp    volatile 
const    float    native    super    while 

Technically 'true', 'false' and 'null' are literals but for the purpose of the exam consider them as keywords.




PreviousNext

Related