+ 9
Difference between Object and identifier.
hey all i have a doubt lets look here: Scanner fu = new Scanner(System.in); so fu is an object of Scanner class right? but some people also called fu is identifier here? So I'm wondering is there any difference or not? I'm all confused please clear it out.
9 Respuestas
+ 5
@Nirmal but String is an object in java, and i though println is a method of printStream.
+ 5
Arigatōgozaimashita
(Thank you both)
for your help 😊😇
+ 3
Object is the instance of a class whereas
Identifiers are the names of variables, methods, classes, packages and interfaces.
here fu is an object of scanner class and not an identifer but Scanner itself is an identifier
+ 3
@The Untold Programmer how about some examples?
+ 2
in the HelloWorld program, HelloWorld, String, args, main and println are identifiers.
hope u know about examples of object
+ 2
HelloWorld is the class name