• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Error on OCA Practice Exam Chapter 10 Question 63

 
Greenhorn
Posts: 13
1
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I noticed an error on Question 63(OCA Practice Exam Chapter 10).


package unix;

import java.util.*;

public class EchoFirst{...}


It says when run as java EchoFirst seed  flower plant. But there is package for this class so we must use fully qualified name while using java command -->  java unix.EchoFirst seed  flower plant.


Is it an error? or Is it possible to run a java application without writing fully qualified class name?
 
Bartender
Posts: 3958
43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, for me it looks like an error. Class must be referred by full name including the package.
 
author & internet detective
Posts: 42109
934
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Agreed! Added to the errata for the Java 8 Practice Tests book and credited you.

I also checked our Java 11 practice tests book. It was fixed there (the package name was removed.)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic