• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Importing packages with naming conflicts (Java OCA 8 Programmer I Study Guide, Sybex)

 
Greenhorn
Posts: 11
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to get the Java OCA Certification and am reading the book. On page 12, there is a section where you import java.util.*; and java.sql.*;
I typed that and my code still compiles even though the book says it does not compile. Can someone please explain why?
Thanks
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Simon Shi,

First of all, a warm welcome to CodeRanch!

Simon Shi wrote:I am trying to get the Java OCA Certification and am reading the book. On page 12, there is a section where you import java.util.*; and java.sql.*;
I typed that and my code still compiles even though the book says it does not compile. Can someone please explain why?


Did you typed the complete code snippet? So including the class Conflicts?

Kind regards,
Roel
 
Roel De Nijs
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Simon Shi wrote:I am trying to get the Java OCA Certification and am reading the book. On page 12, there is a section where you import java.util.*; and java.sql.*;
I typed that and my code still compiles even though the book says it does not compile. Can someone please explain why?


In this topic another rancher has doubts too about exactly the same code snippet. So that's definitely worth reading as well!
 
Simon Shi
Greenhorn
Posts: 11
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Roel De Nijs wrote:

Simon Shi wrote:I am trying to get the Java OCA Certification and am reading the book. On page 12, there is a section where you import java.util.*; and java.sql.*;
I typed that and my code still compiles even though the book says it does not compile. Can someone please explain why?


In this topic another rancher has doubts too about exactly the same code snippet. So that's definitely worth reading as well!


Thank you so much Roel De Nijs!! This really helps!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!