Shonu Tech

Business, Digital Marketing, SEO, Technology, Programming Languages, Computer

Home Advertisement Full Widh

Post Page Advertisement [Top]

Java Tokens

java, java tokens, intellij, minecraft java, jdk, online java compiler, netbeans, java jdk, intellij idea, java compiler, java script, java 8, gradle, jvm, openjdk, java runtime environment, java 64 bit, jdbc, java update, java 16, javafx, w3schools java, junit, apache tomcat, jdk 8, spring framework, java se, java online, java 11, java programming, javatpoint java, oracle java, java list, java development kit, install java, eclipse java, mockito, java jre, quarkus, java ide, jdk 11, java runtime, java version, java spring, java swing, spring mvc, james gosling, java api, gson, java decompiler, spring cloud, j2ee, java ee, javadoc, java latest version, java 1.8, java 32 bit, learn java, java developer, java se development kit, jdk 1.8, awt, java virtual machine, java news, graalvm, log4j, jmx, apache netbeans, java apple, openjdk 11, apache maven, java code, java t point, apache poi, vaadin, libgdx, java language, java jdk 8, ejb, oracle jdk, netbeans ide, glassfish, jnlp, java 17, free java, amazon corretto, java generics, mapstruct, sdkman, core java, java 7, java bullet, java programming language, javac, java 8 update 45, spring data jpa, static java, java basics, head first java, jdoodle java, java 15, for each java, java web start, java gui, java windows 10, jdk 15, java javatpoint, for java, access specifiers in java, java mac, openjdk 8, java ide online, lombok maven, java certification, jdk 16, jdk8, java app, online java editor, effective java, java 18, java editor, java applet, java8, java servlet, threads in java, java frameworks, data structures and algorithms in java, geeksforgeeks java, noclassdeffounderror, java tutorialspoint, install jdk, java projects, data structures in java, java course, keystore explorer, super java, java decompiler online, java jdk 11, threadpoolexecutor, jakarta ee, hibernate java, junit 5, jvm in java, java doc, install java ubuntu, java awt, httpservletrequest, online java compiler gdb, jprofiler, lwjgl, java function, jframe, visualvm, redisson, java if, java offline, this java, eclipse ide for java developers, logback, jaxb, java 64, java bean, double java, javagame, javax, selenium java, vscode java, java 9, tomcat server, j2me, java web, java json, java windows, netbeans java, lombok java, jdbc in java, java basic programs, java update windows 10, jgrasp, arrayindexoutofboundsexception, tlauncher java, install java windows 10, best java ide, hackerrank java, visual studio code java, application blocked by java security, java price, netbeans with jdk, java ui, java 6, java offline installer, amazon corretto 11, java for beginners, java geeksforgeeks, jre 11, simple java program, jre 8, get java, invocationtargetexception, java software, java 14, oracle java certification, httpurlconnection, jdk 14, java 1.6, jdk11, java uuid, jdk latest version, illegalstateexception, jcreator, java rmi, launch4j, sneakythrows, serialversionuid, oracle java jdk, java jdk 1.8, java io, java socket, jdk 17, install java 8, nosuchelementexception, maven java, java byte, advanced java, java case, printstream, jre 1.8, kotlin language, jconsole, java android, netbeans ide 8.2, java express, run java code online, java wait, install java mac, openjdk windows, spring security jwt, visual studio java, jpa java, java projects for beginners, java oop, javaw, classnotfoundexception, adopt open jdk, jsch, install java jdk, hibernate validator, spring jdbc, jstack, printstacktrace, gcj, jfreechart, jackson java, jshell, java sql, powermock, java 1.7, glassfish server, java 10, codecademy java, jtextfield, java microservices, filenotfoundexception, java server, java 8 api, adoptjdk, openjfx, oracle jdk 8, java me, java jdk 12, thinking in java, zoneddatetime, brew install java, udemy java, java keystore, reentrantlock, java linux, java code examples, java se 8, jvisualvm, bytearrayoutputstream, java guru, java vm, and in java, jdbc mysql, sun java, jsp java, jlabel, json to java, openjdk 16, jre in java, anagram program in java, jmonkeyengine, java plugin, aws java sdk, programiz java, jasypt, java server pages, jav list, java projects with source code, jsonschema2pojo, openjdk 1.8, jackson json, java icon, java 12, numberformat, eclipse ide for java ee developers, graphql java, leap year program in java, jdk 7, java log, java virtual machine launcher, java environment, java the complete reference, apache httpclient, java chrome, java programming for beginners, mvc java, java filter, run java online, jdk version, cucumber java, java program example, java backend, java 8 update, java tree, java se development kit 8, open java, rx java, java x64, install java 11, java 13, java spring framework, java runtime environment 8, orelsethrow, java persistence api, introduction to java, java runtime environment mac, objects in java, java for dummies, java openjdk, java rest api, opencv java, java snake, java windows 7, install java 8 ubuntu, xssfworkbook, java 8 64 bit, mc java, oracle jre, install jdk 8, jav github, classcastexception, socket programming in java, java code online, docker java, spring data jdbc, java new, jdk 13, jar decompiler, jav web, jar java, facebook java, install intellij, jbutton, java 11 jdk, java jdk 15, junit 5 maven, spring microservices, struts framework, fibonacci java, learn java online, current java version, j2se, java graphics, getresourceasstream, guava java, learn java programming, jvm 11, grpc java, java jdk 16, install java linux, openjdk 15, java base64, java developer skills, java 64 bit windows 10, simple java programs for beginners, java runtime environment windows 10, java brains, java http client, spark java, java 32, java runtime environment 64 bit, project jav, java version 8, dynamic binding in java, jdk 1.7, square root in java, jdgui, jar to exe, sqlexception, java to kotlin, jgit, gson java, interruptedexception, forkjoinpool, javadoc example, drjava, axon framework, java programs for interview, java security, java server faces, ejb in java, jdk 12, spring boot jwt, eclipse ide for java, maven junit, xxhash java, java se 11, java enterprise edition, java 2021, java se 16, java launcher, spring batch example, jdk mac, xmx2048m, oracle java 8, java url, jsp servlet, stackoverflowerror, vavr, ubuntu java, w3 java, javap, java jframe, unknownhostexception, nosuchmethoderror, kafka java, install jre, nextline in java, jpa hibernate, jtextarea, java tm, spring rest api, gridbaglayout, functional programming in java, java archive, visiblefortesting, jav able, oracle jdk 11, inputmismatchexception, javase, sxssfworkbook, java python, openwebstart, sockettimeoutexception, java platform, jarsigner, java example, webservices in java, jms java, java mysql, readline java, java version cmd, java kotlin, junit before, deeplearning4j, java jwt, sdk java, jscrollpane, java scripting language, byte code in java, dispatcherservlet, jdbc postgresql, java bar, exceptionininitializererror, java web application, java reference, java md5, jdbc url, jetty server, install java jdk windows 10, codingbat java, javaagent, java xml, archunit, java standard edition, java online course, latest java, java web framework, java firefox, bytearrayinputstream, virtual function in java, junit 4, tomcat version, java jre 8, servlet api, java coding program, eclipselink, adopt jdk

What is Java Token-?

Java Token is the smallest element of a program that is identified by a compiler. Every java statement and expression are created using Tokens.

Tokens in Java:-
        1. Keyword
        2. Identifier
        3. Operator
        4. Separator
        5. Literal

Example:-
Class A                        //class is keyword and (A is Identifier)
    {
        public static void main (string [ ])        //here public, static and void is keywords and (Main is identifier which is method name)
        {
            int a=10, b=20;        //int is keyword and (a&b is identifier), here = is operator
            int c=a+b;                //int is keyword and (a&b is identifier) and + is operator
            system.out.print (c);
        }
    }
//curly brackets in this program are separators, and values of identifier is literal.

Keywords:- int, static, void
Identifier:- variable, method, class-name
Operator:- +, -, *, /, %, etc...,
Separators:- Separate the statement by using (;, ., :, {})
Comment:- (//) the double slash in the bracket we use to write about the program to understand that what is the program about, so the reader can understand easily. Compiler will ignore this comment, but if we are not using (//) then compiler will will push a message of error.

What is keywords-?

Keywords are the reserved words whose meaning is already defined in the compiler called keyword.
The total number of keywords in java are 50 in that two keywords are unused they are (const and goto), it remain as future use.
Keywords are:-
      1. abstract
      2. assert
      3. boolean
      4. break
      5. byte
      6. case
      7. catch
      8. char
      9. class
    10. const
    11. continue
    12. default
    13. do
    14. double
    15. else
    16. enum
    17. extends
    18. final
    19. finally
    20. float
    21. for
    22. goto
    23. if
    24. implements
    25. import
    26. instanceof
    27. int
    28. interface
    29. long
    30. native
    31. new
    32. package
    33. private
    34. protected
    35. public
    36. return
    37. short
    38. static
    39. strictfp
    40. super
    41. switch
    42. synchronized
    43. this
    44. throw
    45. throws
    46. transient
    47. try
    48. void
    49. volatile
    50. while

In the above 50 keywords
                 strictfp is the keyword which is added in version 1.2
                 assert is the keyword which is added in the version 1.4
                 enum is the keyword which is added in the version 5.0

        true, false and null is also like keyword. but they are actually literals.
        You can't use any of the keyword as identifier in your program, because already compiler has the meaning of the every keywords.

What is Identifier-?

In Java, an identifier is the name of a variable, method, class, packages, or interface, that is used for the purpose of identification, without identifier you cannot do any programming. you can create your own identifier.

Rule's for creating Identifier.
         Keyword can't be used as a identifier
         Identifier's are case-sensitive
         We can't use white space in between identifier. we can use ($ or underscore symbol _ )
         Identifier always starts with letters ($ or underscore symbol _ )
         All the variables, methods, class-names, packages names are identifier

What is Java Operators-?

Operator is a symbol that is used to perform operations according to users requirement. Variables and values can perform in operators.

Types of Operators:-
1. Arithmetic Operator:- This operators works for calculation process like add (+), Subtract (-), Multiply (*), divide, Percentage (%)

2. Relational Operators:- This operator is used to less then (<), greater then (>), less then equal to (<=), greater then equal to (>=), |=, = etc...,

3. Logical Operators:- &&, ::, !

4. Increment Decrement Operators:- These operator are of two types
                        Pre-Increment Operator:- ++esp
                        Post-Increment Operator:- esp++

                        Pre-Decrement Operator:- --esp
                        Post-Decrement Operator:- esp--

5. Assignment Operator:- These operators are of two types
                        Simple Assignment Operator:- =
                        Compaund Assignment operator:- +=, -=, *= etc...,

6. Ternary Operator:- To check condition case (?:)

7. Bitwise Operator:- (AND, xOR, Compliment)

 The above Increment and Decrement operator and Assignment operator are called Unary operator. Which works as single operand with single operand.
Arithmetic operator, Relational operator, Logical operator, Ternary operator and Bitwise operator are Binary operator, which works with the 2 or more operand.

No comments:

Post a Comment

Bottom Ad [Post Page]