Saturday, 9 July 2016

Starting with CORE JAVA

   Introduciton to JAVA

Hello guys,this is Hitesh and today we'll gonna discuss about core java.
We will finish this topic in upcoming 2 weeks.
I'll post a chapter daily from introduction to file handling.i.e Full core java
Hope it will be fun and helpful...

What is Java?
A language which defines rules and regulations along with a technology which provides ready_made building blocks for quick development.
It was developed in 1991 with initial name ‘Oak’ with the goal to run every consumer device using this technology by James Gosling and it team.
It was conflicting with AWK a pattern search language in Unix.
It was renamed to Java in 1995 which is Latin word to coffee.

Why Java?
Java is write once run anywhere or platform independent. Java get compiled into another format called as byte code language which is understood and interpreted by another software called as Java Virtual Machine (JVM) and converted to native code.
.java à JAVAC à .class (byte code) à JVM (Class Loader à Code Verifier à Just‑in‑Time (JIT) compiler) à Native code à execution
JVM is a machine dependent software but makes the Java platform independent.
The class file cannot run themselves and under the control of Code Verified which make java as Safe.
Java provides a big set of API or Java libraries for almost any purpose which makes the development very fast.
It has many tools to work with giving more choice to work e.g. Oracle NetBean, Eclipse, IBM Visual Age, Oracle JDeveloper, Visual Café, BlueJ etc.
 Java is multi-threaded.
Java is distributed.
Java provides a built-in software called as Garbage Collector to reclaim the orphan memories avoiding any memory leakage.
Java provides built-in facility to trap the run-time errors called as exceptions.

Requirements for Java Development
1.     JSDK (Java Software Development Kit)
a.     JDK (Java Development Kit)
b.     JRE (Java Runtime Environment)
                                                              i.      Java Virtual Machine
                                                            ii.      Garbage Collector
2.     IDE (Integrated Development Environment)

Resource Center
http://java.sun.com          for download Java tool
http://www.java.com      for JRE and more about usage of Java

Starting the Java programming
1.     Java is case sensitive
2.     Java provides some syntactical rules
a.     All keywords or package names must in small letters
b.     All field name and method name start with lower letter and any new word get introduced make its first letter as capital letter
                                                              i.      printf()
                                                            ii.      readLine()
c.      All class name, enumerator names and interface name start with capital. Any new word get introduced make it first letter as capital
                                                              i.      Math class
                                                            ii.      String class
                                                          iii.      Character class
                                                         iv.      BufferedReader
                                                           v.      InputStreamReader
3.     Java files will have .java extension
4.     A Java program can contain one or more classes. Every executable class must have an entry point called as main() method
a.     public static void main(String args[])
b.     public static void main(String []args)
c.      public static void main(String… args)
5.     Java provides some built-in class for input/output operations
a.     System class under java.lang package provides three built-in references for input and output operations
                                                              i.      in         for standard input (keyboard)
1.     int read()
                                                            ii.      out      for standard output (monitor) – black color
1.     print()
2.     println()
3.     printf()
                                                          iii.      err      for standard error (monitor) – red color
1.     print()
2.     println()
3.     printf()

So,this was all about the introduction of core java..hope you learnt something from this...
In the next post we'll discuss some data types and others terminologies of java.
                                                                                                       
                                                                                                           Thank You
                                                                                                          keep coding ,keep learning
                                                                                                               :)

No comments:

Post a Comment