Posts

Type Casting in Java

While programming, sometimes there is situation encounter, where we have to store a value of one type into a variable of another type. In such situations, we have to cast the value to be stores by processing it. The syntax is:   type variable 1 = (type) variable2; The process of converting one data type to another is called casting. Casting is often necessary when a method returns a type different than the one we require.

Java Virtual Machine (JVM)

All language compilers translates source code into machine code for a specific computer. Java compiler also does the Sam erhing. Now the question is how does the Java achieve architecture or operating specification neutrality?? The answer of this question is that the Java compiler produces an intermediate code known as bytecode for a machine that does not exist. This machine is Java Virtual machine and it exist only inside the computer memory. It is a stimulated computer within the computer and does all major functions of a real computer. The virtual machine code is not machine specific. The machine specific code ( machine code) is generated by the Java interpreter by acting as an intermediary between the virtual machine and real machine.

Java Development Kit (JDK)

The Java Development Kit comes with a collection of tools that are used for developing and running Java programs.  The tools included in JDK are: Appletviewer Javac Java Javap Javah Javadoc Jdb Appletviewer -  Uses for running Java applets without using a Java compatible browser. Java -  It is Java interpreter,  which runs applets and application by reading and interpreting bytecode files. Javac -  It is Java compiler, which translates Java source code to bytecode files that interpreter can understand. Javadoc -  Creates HTML-format documentation from Java source code file.  javah -  Produces header files for use with native methods. Javap -  Java disassembler, which enables us to convert bytecode files into a program description. Jdb -  Java debugger, which helps us to find error in our programs.

Concept of OOPS

In this post, I generally explain the concepts of OOPS in simple way, for understanding them. First of all, the concepts of OOPS are- Objects Classes Data Abstraction Data Encapsulation Inheritance Polymorphism Message passing. Now I didn't explain these in a long para, except of long para I use single line so you can easily understand these terms. Objects-  Basic entities of the program. Eg- A single student. Classes-  Collection of similar objects. Eg- A group of students. Data Abstraction-  Representing essential features while hiding the background details. Data Encapsulation-  Wrapping up of data and the functions that operate on the data. Inheritance-  Process by which a class acquires properties of another class. Polymorphism-  ability to take many forms. ( furhter information in polymorphism post). Message passing-  Objects communicate with each by use of function calls.

History of Java

​ Java   is a programming language used for developing distributed application by making use of client-server architecture. Java  language developed at  Sun Microsystem  in the year  1990  under the guidance of  James Gosling  & others. Originally Sun Microsystem is one of the academic university (Stanford University Network) developed the rules for java & those rules are programmatically implemented/developed by Javasoft INC, USA.Javasoft is one of the software division of Sun Microsystem. Whatever the software developed in the year 1990, SunMicrosystem has released in the name of the ‘ OAK ‘, which is the original name of java (Scientifically OAK is one of the tree names). The OAK has taken 18 months to develop. OAK was able to fulfill only a few of the industry requirement & unable to fulfill other requirements of the industry. The software OAK was revised at Sun Microsystem under the guidance of James gosling & released to the ...

You all should know these free E-books

Hey friends, ​T oday I have a question for you: Which of the following resources are you using frequently in order to learn and improve your Java programming skills? - Video Courses - Online forums like  CodeRanch.com - Social hub like  StackOverflow.com - Books  (e-books and paper-books). You know, there are various sources from which you can learn. But today I’d like to talk only about books. Only books! Listen: Books! Do you agree that books are the primary sources of learning? Yes or true? Do you agree that a programmer could not be expert without reading any books? Yes or true? And when was the last time you read a Java book? Well, reading books is very important for anyone who wants to be good at something, especially for programming in general and Java programming in particular. Imagine you are coding Java without reading any books - it’s like you are trying to explore a mysterious cave without carrying a torch. So do you agree with me? Therefore, I would recommend...

4 Best Free Java E-Books for Beginners

If you are looking for some FREE and QUALITY e-books to learn Java, you have come to the right place. Today I would like to share with you some of the best e-books that help you learn programming in Java. The great thing is that all of these books are absolutely FREE and written by authoritative authors who come from original and official sources. You can download or read them online. If you are new to Java and are serious to learn Java for your future jobs, I recommend you to read these books, seriously. I come back to these books often to refresh and strengthen my Java programming skills even I am an experienced Java developer. 1. Thinking in Java (3rd edition) Author: Bruce Eckel Download HTML: http://www.mindview.net/Books/TIJ Published Date: September 2002 Description: This is one of the most famous and classic books to learn Java. Although this book was written in the early days of Java programming language (over 10 years ago), it is now still valuable for those who want to bec...