Home > JAVA Language > Java Interview Questions for Fresher | Experience

Java Interview Questions for Fresher | Experience

java interview questions for Freshers experience

 JAVA INTERVIEW QUESTIONS

Java Interview Questions For Freshers

Java interview questions for Freshers Experience

 

What is Java?
Java is a programming language and is one platform 
 
What is platform?
Any hardware or software environment on which the program runs is called a platform.
 
What is Java platform?
java platform is a software platform. It has JRE(Java Runtime Environment) and APIs.

When to use java?

If we want to built an application in a free of cost instead of paying then the best programming language is Java.

Where to write this Java?
Java takes the help of editor to build the code. Any editor which supports the java can be used to build the java programs. Some of them are Jbeans, notepad, notepad++, eclipse, etc., Most popularly use editor for java is eclipse.

Why only eclipse they chosen for java?
Its free where directly we can install from net. It has internal interpreter and compiler features. It supports multiple programming languages.

It supports to add additional libraries, APIs which can be used for our programming. It can convert entire code in to Jar files. etc.,

What is the latest version of eclipse?
Currently, eclipse Oxygen which can be downloaded from here
What is API?
It may be a collection of classes, interfaces, methods, documents, folders, files etc., which binds together is called API.
When we can call any language(like Java) is a programming language?
When the program is executable then we can call that program as programming language.
When the Java is released?
First version of Java is released in 1995. The name of this version is given as JDK Alpha and Beta.
How many versions are there in Java?
As of now, there are 10 versions in Java.
How to develop a software?
In order to develop a software we need to have such a code which deals with front end, back end.

There are plenty of programming language which covers the front end and back end such as Java, .Net, etc.,

What is language? How many types of languages are there?
Basically there are 2 types of languages

1.  Programming language 
2.  Scripting language

What is Programming language?
Any language which can built the back end and front end, that language is called as Programming language.

ex: Java, .Net, etc.,

What is scripting language?
Any language which can built either front end or back end is called Scripting language

ex: HTML, php, vb scripting, Java scripting, etc.,




What is front end?
The objects/elements which we see in any application is called front end. Even empty spaces can also be considered as a front end in the application.

What is back end?
The background of the screen performing entire operation can be called as Back end.

When to use Scripting languages and when to use Programming languages?
When we need to build only UI or logic then we use scripting languages and to build both UI and logic then we use Programming languages.

Programming languages must be compiled where as Scripting languages may/may not compiled.

The advantage of compiled program is it runs more faster because the code is already converted in to machine code, If any error in the code while compiling then it shows Compile time error.

What is compiler? Why it came in to picture?
The computer can only understand binary language ie., in 0s and 1s. To translate the general human readable language in to machine understandable language there should be one translator which converts any language in to machine readable language.

java interview questions for Freshers experience

This compiler is one which translates the entire code at once into machine code. And while translating the entire code into machine code if it finds unknown format which is not understandable by the compiler while translating into machine code then we get compile time errors.

Every Programming language have compile time errors but the tools which supports to build that code may have interpreter feature so that it minimize the errors.

What is interpreter?
The code which translates into machine understandable language into line by line is called interpreter. Means it checks the 1st line of code after translating into machine understandable code then it checks into 2nd line of code and translates into machine understandable language. Like this it continues till the end of code.

How to develop this compiler and interpreter?
To develop compiler and interpreter, we use Programming language. We can make a Programming language into scripting language by designing an interpreter

Ex: C

Similarly we can design a compiler for Scripting languages and make it to Programming language

Ex: v8 , which compiles Java Script code into Machine code.

Total How may programming languages are there?
We have more than 250 programming languages 



How to build software?
To develop or maintain the software. We follow a process called SDLC(Software Development Life Cycle). In this process we decide our self how the software should be? when to deliver? what and all the activities needs to be done? Who should involve in preparing or maintaining of software? What is the tenure of software? what are the services should be there? Where it should be maintained? How it should be maintained? Who should be taken care by it?
What is the aim of developing the Java language?
The primary aim for them to develop a language which to supports digital devices
ex: Set-top boxes, Televisions.
It also supports other devices also such as – Desktop applications, Web applications, Enterprise applications, Mobile applications, Embedded system, Smart card, Robotics, Games etc.,
 
What is Desktop/Standalone application? What technologies will support to build Desktop/Standalone application?
The applications which runs on Desktop is known as Desktop applications ex: Media Player, etc., 
Swing and AWT  technologies in Java, supports to build the Desktop/Standalone application.
 What is Web application? What technologies uses to develop this application?
The application which runs through internet is called web application or the application which runs on server side by creating dynamic pages in client side is called Web application.
Servlet, jsp, Struts, jsf etc., technologies in Java are mainly used for developing web based applications.
 
What is server?
Server is the centralized location which uses to maintain the application.
 
What is client?
The users who uses the application is called as Clients.
  
What is Enterprise applications? Which technology is used to develop Enterprise applications?
The applications which are designed to deal with money and which contains security, those applications are called enterprise applications
Ex: Banking application.
EJB in Java is used for designing Enterprise application

What is Mobile application?

The application that are supported for mobile devices is called mobile application.
Android and Java ME are used for developing Mobile applications.
 
What is Java Platforms/Editions?
Java have 4 platforms
1. Java SE(Java Standard Edition)
2. Java EE(Java Enterprise Edition) 
3.  Java ME(Java Micro Editiion)
4. Java FX.
 
What is Java SE?
Java SE is a programming platform which is use to develop the portable applications for client and server environments.
It includes APIs like java.lang, java.net, java.sql, java.math, etc., which includes most important concepts like OOPs, String, Regex, Exception, Inner classes, Multi threading, I/O Stream, Networking, AWT, Swing, Collection, Reflection etc.,
What is Java EE?
Java EE is enterprise platform which uses to develop web and enterprise applications.
It includes Servlet, JSP, Web Services, EJB, etc., Currently Java 8 is using for Java EE application.
 
What is Java ME?
Java ME is a micro platform which uses for embedded systems such as mobiles and set-top boxes.
 
What is Java FX?
Java FX is use to develop network applications that deploy across multiple platforms and display in high-performance modern user interface. 
The features are audio, video, graphics and animation.
       
Java Interview Questions For Freshers

Who introduced Java?

Green Team under Sun Micro System initiated Java project in 1991.

The team consist of

James Gosling
Mike Sheridan
Patrick Naughton

They called it as Greentalk with an extension of .gt, later they renamed to OAK and finally to Java in 1995

Why ‘Green Team’ changed OAK to JAVA?

Actually OAK is the symbol of Strength but it was the trademark of ‘OAK Technologies’. Since ‘OAK’ is registered under Trademark, the team thought of a word which relevant ‘revolutionary’, ‘dynamic’, ‘lovely’, ‘cool’, ‘unique’, ‘fun’. As majority of the people proposed ‘Java’. So ‘Java’ came in the picture.

What are the features of Java?

1. Simple
2. Object Oriented
3. Platform independent
4. Secured
5. Robust
6. Dynamic
7. Interpreted
8. High Performance
9. Architecture Neutral
10. Multi Threaded
11. Distributed
12. Portable
13. Familiar


Why Java is Simple?

Java is simple because it overcome the drawbacks of c++ i.e., Java doesn’t contain Pointers (means a variable which holds the address of memory location.), Operator Overloading (priority of operators under in logic) and introduced automatic Garbage Collector (which removes unused code from the memory after the program execution).

Why Java is Object Oriented?

Object – oriented means the combination of data(generally variables which holds values) and the behavior(the logic which we used) which supports Polymorphism and Inheritance where as other languages not. Java useObject Oriented Programming(Oops) concepts of

Class
Object
Inheritance
Polymorphism
Abstraction
inheritanceAndroid interview Questions for Fresher

Why Java is Platform independent ?

Java programs should save with the extension of “.java”. Once it is compiled, the source code is converted in to Byte code with the extension of “.class” by the compiler. As this “.class”file contains 0s and 1s, which is common in all the operating system(Since all the Operating Systems(UNIX, LINUX, WINDOWS, MAC and etc..) understands 0s and 1s). So Java is platform independent. It uses WORA(Write Once Run Anywhere).



Why Java is Secured?

Java is secured because no explicit Pointer(which gives the address of memory location) and Java program runs inside JVM(Java Virtual Machine) and this JVM runs inside JRE(Java Runtime Environment) and this JRE runs inside JDK(Java Development Kit). As the java program is covered by JVM, JRE and JDK, Java program is secured.

Representing diagrammatically as :

Why Java is Robust?

Robust means Strong. Why strong? because it as

1. Srong memory management

2. Automatic garbage collector (means in compile time while storing data in to respective memory location, this garbage collector collects all the unused data from the program and cleans it. So that there is no storage of memory for unused data in the memory location)

3. There is exception handling(means it handles all the exceptions which prevents the stoppage of flow)

4. Type checking mechanism(which states weather all are correct as per the java syntax’s)

Why Java is interpreted?

Since interpreter converts line by line code into byte code, while writing Java program itself, java interpreter converts line by line code into machine code. If java interpreter does not understand the code which is not as per Java rules and regulations, then java interpreter shows red ‘x’ mark at that line which may cause due to syntax error or invalid datatype or unknown data etc., . It also gives suggestions by mouse over on it.

Ex: Diagrammatically:

 

———-> For unknown data

 

 

——> giving suggestions when mouse over on ‘x’ mark

 

—> For invalid datatype

 

 

—-> giving suggestion for invalid datatype when mouse over on ‘x’ mark

 

Why Java is high performance?

Java is high performance since already source code is converted to byte code during compiling, it executes faster.

Why Java is Architecture Neutral?

Java compiler generates an architecture-object(Byte code) file format which makes compile code to be executed in any operating system with the help of JRE. There is no platform dependent features and the size of primitive datatype is fixed in all environment

Ex: For int datatype it occupies 4 bytes of memory for 32 and 64 bit architecture. So, Java is Architecture Neutral.

Why Java is Multi Threaded ?

Each program is executed by a single thread. But we can write a Java program which deals with many tasks at once by defining multiple threads.

The main advantage of Multi Threading is it shares the same memory.

It is used mostly in Multi-media applications and web applications.

Why Java is Distributed ?

We can create distributed applications using Java. EJB and RMI are used for creating distributed applications. So Java is distributed.

Why Java is Portable ?

Java byte code can be executed in any operating system. So, Java is portable.

Why Java is Familiar ?

Now a days Java becoming familiar due to its advantages 

Why Java is dynamic?

Java is dynamic because of all the above features.

   Java interview questions for Freshers Experience  

 Did Java is Platform – independent?

 Can Java used in Windows based, Web – Based, Mobile and Enterprise based applications?

 Did Java support “goto” statement as it is in C, C++ language?

 Did Java support multiple inheritance through class?

 Did Java support multiple inheritance through interface?

 Did Java support Operator Overloading?

 Is it possible to write Pointer programs in Java?


 Did java internally supports pointer?


 Did Java have compiler and interpreter feature?

 Did Java support call by value?

 Did Java support call by reference ?

 Did Java supports Structures as in C and C++ ?

 Did Java supports Unions as in C and C++ ?

 Did Java support Built – in Thread?

 Can we use “virtual” keyword in java to override the methods?

 Did override is possible in Java?

 Can we call non-static methods are virtual by default?

 What is super-class of any class ?


Did Java uses single inheritance tree?

Did Java support unsigned right shift (>>>) and unsigned left shift (<<<) operators ?

Java Quiz 

Did Java support multiple inheritance through class ?

Java interview questions for Freshers experience



Learn More : Complete Android Programs and Interview Question of Android – Click Here

By Varun Kumar

Tech Lead

Any Queries Mail us : varun@fdaytalk.com

Java interview questions for Freshers experience

Follow Us – Never Miss Update

Fb/PageTwitterGoogle+InstagramPinterest

Please Share – Learn and Share Knowledge

Related search:

Advanced java interview questions and answers pdf, advanced java interview questions for experienced professionals, core java interview questions pdf for 3 years experience, INTERVIEW QUESTIONS, java, java interview questions, java interview questions and answers for 3 years experience pdf download, java interview questions and answers for freshers, java interview questions for Freshers experience , java interview questions and answers for freshers pdf, java interview questions and answers for freshers technical, java interview questions and answers pdf for 4 years experience, java interview questions for 1 year experienced pdf, java interview questions for 1-2 years experience,  java interview questions for 3 years experience, java interview questions pdf, java interview questions for Freshers, java interview questions for Freshers experience, java interview pdf for download, java questions for interview freshers, most important questions in java for freshers, technical java interview question 2018, very basic java questions, basic java interview questions, java interview questions for Freshers experience, java interview for ibm, java for mnc interview, java interview questions for Freshers experience

One thought on “Java Interview Questions for Fresher | Experience

Leave a Reply

 

MCQ BIT BANK

 

1000+ BITS 

DOWNLOAD/BUY

 FDAYTALK   EBOOKS 


Click Here

Adblocker Detected

We detected that you are using adblocker plugin for your browser. We never show annoying ads or redirection popups

Please Support Us

Close