Welcomes you all to this Java FAQs page. This page is designed for both beginner and professional Java Developers, It consists of online trending Java  FAQs,

What is Java ?

Java is a object orientated programming language and a computing platform for application development. And it was first invented by Sun Microsystem in 1995 With the intention of " Write once, run anywhere" programming language. It is fast, secure and reliable.

Why to Choose java ?

As programmers we have a bewildering amount of platforms and languages to choose from. Making such a choice is not always easy, yet it’s quite an important one. Many parts of your application can be refactored later, but language is not something you can (and should) change overnight.

After careful consideration I choose Java for my next project for the following reasons:

Top 5 reason to choose java

1.Java is on of the most popular programming languages in the world.

2.Java is one of the fastest languages around.

3.Simple no-nonsense syntax.

4. Java is cross-platform

5. Java has an incredibly rich yet easy to use standard library.

What is the prerequisite knowledge for learning Java?

Java is related to C++, which is a direct descendant of C. Much of the character of Java is inherited from these two languages. From C, Java derives its syntax. Many of Java's object-oriented features were influenced by C++. In fact, several of Java's defining characteristics come from its predecessors (c and c++).

So our suggestion is that, learn C OR C++ first then come back for java..

Why you should learn Java Programming Language


Top 10 Reason to Learn Java :

1) Java is Easy to learn

2) Java is an Object Oriented Programming Language

3) Java has Rich API

4) Powerful development tools e.g. Eclipse , Netbeans

5) Great collection of Open Source libraries

6) Wonderful community support

7) Java is FREE

8) Excellent documentation support - Javadocs

9) Java is Platform Independent

10) Java is Everywhere


What is Inheritance and its Purposes ?

Inheritance is a compile-time mechanism in Java that allows you to extend a class (called the base class or superclass) with another class (called the derived class or subclass). In Java,inheritance is used for two purposes:

i. Class Inheritance.

ii. Interface Inheritance.

What is Object and Class ?
  • Object − Objects have states and behaviors. Example: A dog has states - color, name, breed as well as behaviors – wagging the tail, barking, eating. An object is an instance of a class.
  • Class − A class can be defined as a template/blueprint that describes the behavior/state that the object of its type support.
List Any feartures of Java ?

Platform-Independent, Simple, Object-Oriented, Distributed, Secure, Allocation, Multithreaded.


What are the supported platform by java ?

Java runs on many platforms, Such as Window, Mac OS, and  the various versions of LINX like Sun Solarise, Redhat, Linux, HP- Linx, CentOS.

Is Java Architectural Neutral?


Because, the compiler generates an architecture-neutral object file format, which makes the compiled code to be executable on many processors, with the presence of Java runtime system.

Why Java is considered dynamic?

It is designed to adapt to an evolving environment. Java programs can carry extensive amount of run-time information that can be used to verify and resolve accesses to objects on run-time.

List two Java IDE’s?

Netbeans, Eclipse, etc.

List some Java keywords(unlike C, C++ keywords)?

Some Java keywords are import, super, finally, etc.

Is synchronised is modifier?indentifier??What it is?
It's a modifier. Synchronized methods are methods that are used to control access to an object. A thread only executes a synchronized method after it has acquired the lock for the method's object or class. Synchronized statements are similar to synchronized methods. A synchronized statement can only be executed after a thread has acquired the lock for the object or class referenced in the synchronized statement.


What is compilation unit ?