• Post Reply Bookmark Topic Watch Topic
  • New Topic

HOw to solve this problem?  RSS feed

 
Anu satya
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everybody.

I am new to java world and this is the question asked in one of the technical test papers.

if any one helps me to solve this problem, it will of great help.


Regards,
 
Kj Reddy
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By using packages.
 
ak pillai
author
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use packages as reedy said.

com.Board
org.Board

and so on. It is a good practice to use explicit package names. putting classes in default package is not recommended anyway.

so you will have a class




and

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!