Skip to main content

Introduction to Java




Java is both a programming language and a platform ,
It is a high level language that is simple,object oriented, distributed, multithreaded, dynamic, architecture neutral, portable, robust and secure. In the Java programming language, all source code is first written in plain text files ending with the .java extension. Those source files are then compiled into .class files by the Java compiler (javac). A .class file does not contain code that is native to a processor; 
it instead contains bytecodes - the machine language of the Java Virtual Machine. The Java
launcher tool (java) then runs the application with an instance of the Java Virtual Machine.
The Java Virtual Machine is available on many different operating systems, the same .class files are capable of running on Microsoft Windows, the Solaris Operating System (Solaris OS), Linux, or MacOS. Some virtual machines,such as the Java HotSpot Virtual Machine, perform additional steps at runtime to give your 
application a performance boost.

The Java programming language is a high-level language that can be characterized by all of the following buzzwords:

1.Simple

2.Object oriented

3.Distributed

4.Multithreaded

5.Dynamic

6.Architecture neutral

7.Portable

8.High performance

9.Robust

10.Secure


1.Simple - 

simple language that can be programmed without extensive programmer training , syntax is simple and easy to understand , Familiar to C++. having "look and feel" of C++ and removed all the complexities of C++ , means that programmers can migrate easily to the Java platform and be productive quickly.

2.Object Oriented -

Java programming language is Object-Oriented, everything in java is object , we have to deal with objects.To Learn more about object , please click here.

3.Distributed -

Java is Distributed Language, it means ,because the program of java is compiled on one 
machine can be easily transferred to other machine and Executes them on another machine because 
facility of Bytes Codes So java is Specially designed For Internet Users which uses the 
Remote Computers For Executing their Programs on local machine after transferring the Programs from Remote Computers or either from the internet.

4. Multithreaded - 

multithreading capability helps to build applications with many concurrent threads of activity..we can perform multiple operations simultaneously ,in multithreaded application.

5.Dynamic - 

Java is considered as Dynamic because of Byte code [a class file]. A source code written
 in one platform, that can be executed in any platform. And it also loads the class files at run time. Anything that happens at run time is considered as Dynamic.run-time system are dynamic in their linking stages. Classes are linked only as needed. New code modules can be linked in on demand from a variety of sources, even from sources across a network. I

6.Architecture neutral -

the Java Compiler generates bytecodes - an architecture neutral intermediate format designed to transport code efficiently to multiple hardware and software platforms.
The interpreted nature of Java technology solves both the binary distribution problem 
and the version problem; the same Java programming language byte codes will run on any platform.
Java technology is designed to support applications that will be deployed into heterogeneous 
network environments. In such environments, applications must be capable of executing on a 
variety of hardware architectures. Within this variety of hardware platforms,
applications must execute atop a variety of operating systems and interoperate with 
multiple programming language interfaces. To accommodate the diversity of operating
environments.

7.Portable -

WORA-Write Once Read Anywhere.Java is known as a "portable language" because Java code can execute on all major platforms.What's more, once you've compiled your Java source to "byte-code" .class, those files can be used on any Java-supported platform without modification.

8.High performance -

Java platform achieves superior performance.The automatic garbage collector runs as a low-priority background thread, ensuring a high probability that memory is available when required, leading to better performance.Applications requiring large amounts of compute power can be designed such that compute-intensive sections can be rewritten in native machine code as required and interfaced with the Java platform. In general, users perceive that interactive applications respond quickly even though they're interpreted.

9.Robust- 

robust means strong and healthy,Java is a robust language that can handle run-time errors as it checks the code during the compile and runtime. If any runtime error is identified by the JVM,it will not be passed directly to the underlying system.

10.Secure-

Java technology lets you construct applications that can't be invaded from outside.
In the network environment, applications written in the Java programming language are secure 
from intrusion by unauthorized code attempting to get behind the scenes and create viruses 
or invade file systems.


Popular Posts

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

Today we will see solution for Error In Spring Boot : ***************************  APPLICATION FAILED TO START ***************************  Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.  Reason: Failed to determine a suitable driver class. --->My Application.yml : server: port: 8081 spring: datasource: driver-class-name: oracle.jdbc.driver.OracleDriver url: jdbc:oracle:thin:@localhost:1521:xe username: sys as sysdba password: root Oracle Version is 21 C Oracle Database 21c Express Edition Release 21.0.0.0.0 - Production Version 21.3.0.0.0. check my pom.xml here : <? xml version = " 1.0 " encoding = " UTF-8 " ?> < project xmlns = " http://maven.apache.org/POM/4.0.0 " xmlns:xsi = " http://www.w3.org/2001/XMLSchema-instance " xsi:schemaLocation = " http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/m...

Stream In Java

stream in java 8 : Stream API is used to process collection of objects. stream() method is present in Collection interface from package java.util . Stream is an interface present in java.util package, filter() and map() methods are present in Stream interface. -->when to use filter()  method ? If we want to filter elements from collection based on some boolean condition then we can use filter() method.  for example  : filtering even or odd numbers from list of numbers. -->When to use map()  method ? If we want to create new object for every object in collection then we should use map() method. for example : if we want to increase every number in list by 2 , here every object is getting modified ,we have to use map() in this type of scenario. In below example , we used both filter() and map() methods on stream , inside filter method we applied some condition and in map method we are transforming our object to different one. package com.crtr4u.www; import java...

How much Software Engineer Earn in India

  No limit of earning for free lancer software developer : In service based companies - If Software Engineer work for same MNC from beginning of career then sometimes financial growth is low,still they can reach in between 7 lacs to 15 lacs in India. If programmer switch job after every 2-3 year and work for at least 5 years then they can earn minimum in between 14 lacs to 25 lacs for the position of Senior Software Engineer.  Being from a normal college , completed my education with average percentage , then  As 2 year experienced guy - I was getting offers of 8 lacs, 10 lacs  As 5 years experienced guy the offers are like  Minimum 12 lacs ,14 lacs, 18 lacs from Indian MNCs.  Money is  no bar for right candidate, if you are able to crack interview and if you can  write effective code then you can earn more than 20 lacs in India itself. Be motivated, improve your technical skills and yes you can earn great amount from Job too...  People with ...