• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

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: 3796
40
  • 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: 41502
881
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.)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic