Posts

Showing posts from June, 2018

JAVA ARCHITECTURE

Image
JAVA ARCHITECTURE The Java architecture defines the components that are essential to carry out the creation and execution of code written in the Java programming language. The various components of Java architecture are: Source file : Java is a robust programming language that enables developers to build a wide variety of applications for varying purposes. In order to write a Java programs or applications, you need to write certain codes. A java application contains the source code that enables an application to provide its desired functionalities. This source code saved in a source file with the extension .java. Class file : Once created a .java file is compiled to generate the .class file. A class file contains the bytecode that is generated by the compiler. Further, this class file can be executed by any machine that supports the Java Runtime Environment (JRE). JVM : The JVM is an application that is responsible for executing Java programs on a computer. It resides in the ...

IDENTIFYING THE FEATURES OF JAVA

IDENTIFYING THE FEATURES OF JAVA Java provides power features that make it popular and widely used programming language. Some of these features are: Simple : When an object of a class is created, memory needs to be allocated. Later on, when the object is no longer required, the allocated memory of the object should be released. In java, memory allocation and deallocation automatically. The process of allocation and deallocation of memory is called garbage collection. POINT: One of the major problem areas in most of object-oriented languages, such as C++, is to handle memory allocation. Programmers need to handle memory in the program explicitly for optimum utilization. To handle memory allocation, they use pointers that enable a program to refer to a memory location of the computer. However, java does not support pointers and consist of the built-in functionality to manage memory. Multithreaded : Java provides the concept of multithreading and allows a program to...

HOW TO SET PATH FOR JAVA

Image
HOW TO SET PATH FOR JAVA Checking the version of java in your System:- Open Run command using key Windows + R. The command prompt will appear and now type java –version you will see message and version of java like this:- For Setting Path:- In case of java we can set path in two ways:- Temporary path set:- For temporary path setting first open command prompt and enter the address of bin folder of java that is present in program files in your C: drive (Commonly). Here, cd is used for Change Directory. Using this, you will able to set path for java temporary means whenever you close the cmd path become disturbed. Permanent path set:- Open the properties of your Computer using My Properties. Click on Advanced system Open the Advanced Panel in it. Now, Click on Environment Variables . A Window will appear like this :-         Now Click on New (You can choose either one but if you are using multiple accounts then ch...