• Post Reply Bookmark Topic Watch Topic
  • New Topic

Implicit & Explicit  RSS feed

 
Dinushi Chathu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone explain difference between Implicit & Explicit and how to identify Implicit & Explicit
 
Achint Verma
Greenhorn
Posts: 12
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please give a proper description of you're problem. Implicit and explicit in relation to what ?
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also UseAMeaningfulSubjectLine (<- click)to help others better understand what you question is briefly about.
 
Josh Rowe
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Generally speaking, explicit refers to when you do something specifically in a program. For instance, if you were type casting a float into an int type you would have to explicitly prefix that assignment expression i.e. Quite the opposite is implicit. These actions can be done automatically in Java like assigning an int value to a long variable. The same is true when using contructors. Constructors implicitly or automatically call their super class constructors if you don't code them a certain way. The terms can refer to anything in programming in general. It just depends on whether you preform an action specifically or code it, or if it is done automatically for you for whatever reason.
 
milan chovatiya
Greenhorn
Posts: 24
Java Oracle Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
implicit things means things which are done automatically for you by environment or compiler......and explicit means things that you have to look after yourself..
like there are implicit and explicit type casting...
 
Ivan Jozsef Balazs
Rancher
Posts: 999
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yet another example.

If you write a class without any constructor, the compiler will implicitly insert a no-arg constructor simply invoking "super()". If the super class has no (accessible) no-arg constructor, this circumstance will preclude the compilation of the class.

If you explicitly code one or more contructors, them no implicit one will be inserted by the compiler.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!