Popular posts from this blog
Difference Between Compiler and Interpreter and Difference between JDK, JRE and J VM
Difference Between Compiler And Interpreter A compiler takes entire program and converts it into object code which is typically stored in a file. The object code is also refereed as binary code and can be directly executed by the machine after linking. An Interpreter directly executes instructions written in a programming or scripting language without previously converting them to an object code or machine code. Difference Between Java Development Kit(JDK), Java Run Time Environment(JRE) And Java Virtual Machine(JVM) JVM ( Java Virtual Machine ) is an abstract machine. It is a specification that provides runtime environment in which java bytecode can be executed. JVMs are available for many hardware and software platforms. JVM, JRE and JDK are platform dependent because configuration of each OS differs. But, Java is platform independent . The JVM performs following main tasks: Loads code Verifies code Executes code Provides runtime environment ...
Variable in Java
Variable in Java Variables is the name of reserved area allocated in memory. Identifier are those whose value will change during execution of the program. Rules: First letter must be and alphabet. Length can be up to 32 characters. No special character is allowed except underscore (_). No keyword to be used. Local Variable: Declared within the body of method. Instance Variable: The variable which is associated with the object of that class. Static Variable: The variable which is associated with a class, not the object of the class.(Eg: used in counting of the object)
Comments
Post a Comment