Java Programming for beginners

Java training for Beginners - Study Java in simple and easy steps starting from basic.. the basic to advanced thought related to Java Programming language.

Importance of java

Java is the most famous programming languages used to create or make Web applications and platforms. Designed for flexibility, allowing developers to write code that would run on any machine, regardless of architecture or platform.

Learning Java program

Study the basics of any programming language is very important. Many a time it will be overwhelming but be patient, study at your own pace, don't rush. Practice Coding. Read about Java regularly.

Modules in Java Programming

Modular programming is a software design technique which emphasizes differently the works of a program into independent, interchangeable modules, such that each contains everything necessary to execute only one aspect of the desired functionality.

Advantages of Java Programming Language

Advantages of Java: Simple: Java was designed to be effortless to use, write, compile, debug, and study than else programming languages. Java is very much simpler than C++ because Java uses automatic memory allocation and garbage collection. Object-Oriented: Allows you to create modular programs and reusable code.

Tuesday, December 25, 2018

Introduction of Java

Two-part introduction to the Java programming tutorial is for software developers who are
new to Java technology. Work through both rising and moving parts with object-oriented
programming (OOP) and real-world application development using Java-language and platform.
Introduction of Java
 Java is a simple, robust and secure programming language. Here are the key features of Java:


This first part is a step-by-step introduction to OOP using Java language. The tutorial starts with
an overview of the Java platform and language, followed by instructions for setting up a
development environment, combined with the Java Development Kit (JDK) and the Eclipse IDE.
After getting acquainted with the components of your development environment, you start learning
basic Java syntax.

Prerequisites
This tutorial is for software developers who are not yet experienced with Java code or the Java
platform. The tutorial includes an summary or you can say overview of OOP concepts.

System requirements

To complete the exercises in this tutorial, you will install and set up a development environment
consisting of:
JDK 8 from Oracle
Eclipse IDE for Java Developers

Java platform overview

Java technology is mainly used to develop and make applications for a hige range of environments,
from consumer devices to heterogeneous enterprise systems. In this section, get a high-level view
of the Java platform and its components.
Many Java developers are constantly referring to the official Java API documents called Javadoc.
Three locations are planned in Javadoc. The top left lane shows all API packages, and the bottom left
shows lessons for each set. The main panel shows the details for the currently selected package or
class. For example, if you click java.utilpackage in the top left, then click the ArrayList class below, you see the details on the right side of the ArrayList, including the description of how to use it and its methods.


As any programming language, the Java language has own structure, syntax rules, and programming paradigm.
The Java language's programming paradigm is literally based on the perception of OOP, which the language's features support.

The Java language is a C-language derivative, as its syntax guideline look much like C's. For example, code

blocks are modularized into process and delimited by braces ({ and }), and variables are acknowledge before

they are used.

The Java compiler

Working on the Java platform, you write source code in .java files and then compile them. The compiler checks your code opposed to the language's syntax rules, then writes out bytecode in .class files. Bytecode is a set of guidelines targeted to run on a Java virtual machine (JVM). In this level adding of abstraction, the Java compiler differs from other language compilers, which write out instructions suitable for the CPU chipset the program will run on.

The JVM

During the runtime, JVM reads and interprets .class files. The program executes the instructions on the original hardware platform, for which JVM was written. JVM interprets the bytecode in the same way as the CPU interprets assembly-language instructions. The difference is that JVM is a piece of software specifically written for a particular platform. JVM is the heart of the Java language's "right-ons, run-anne-somewhere" theory.
Your code can run on any chipset for which an appropriate JVM implementation is available. JVM is available for major platforms such as Linux and Windows, and java language subsets have been implemented in JVM for mobile phones and Hobbit chips.

The garbage collector

Rather than forcing you to keep up with memory allocation (or use a third-party library to do so), the
Java platform gives data management out of the box. When your Java application creates an object
instance at during time, the JVM naturally allocates memory space for that object from the heap— a
pool of memory set aside for your program to work or use. The Java garbage collector runs in the
background, keeping track of which objects the application no longer needs and reclaiming memory

Monday, December 24, 2018

Java Interview Questions

In this Java Interview Questions blog, I am going to show you the list of some of the 
most important Java Interview Questions and Answers which will set you apart in the interview process. Java program is used by approx 10 Million developers worldwide 
to develop applications for 15 Billion devices supporting Java. Also used to creator 
make applications for trending technologies like Big Data to household devices like
Mobiles and DTH boxes. And hence today, Java is used everywhere!
Java Interview Questions
Java Interview Questions all you want to know about Java interviews


As a Java professional, it is essential to know the right buzzwords, learn the right technologies and prepare the right answers to commonly asked Java Interview Questions. Here’s a definitive list of top Java Interview Questions that will guarantee a breeze-through to the next level.

Q1. Why Java is platform independent?

Platform independent practically means “write once run anywhere”. Java is called so because of its byte codes that can run on any system irrespective of its underlying operating system.

Q2. Why java is not 100% Object-oriented?

Java is not 100% Object-oriented because it makes use of eight primary data types such as boolean, byte, char, int, float, double, long, short which are not objects.

Q3. What are constructors in Java?

In Java, constructor refers to a block of code which is used to initialize an object. It must have the same name as that of the class. Also, it has no return type and it is automatically called when an object is created.
There are two types of constructors:
Default constructor
Parameterized constructor

Q4. What is the difference between equals() and == ?

Equals() method is defined in Object class in Java and used for checking equality of two objects defined by business logic.
“==” or equality operator in Java is a binary operator provided by Java programming language and used to compare primitives and objects. public boolean equals(Object o) is the method provided by the Object class. The default implementation uses == operator to compare two objects. For example: method can be overridden like String class. equals() method is used to compare the values of two objects.

Q5. What is Polymorphism?

Polymorphism is briefly described as “one interface, many implementations”. Polymorphism is a features of being able to assign a different meaning or usage to something in different contexts – specifically, to allow an entity such as a variable, a function, or an object to have enough form. There are two types of polymorphism.

Q6. What is association?

Association is a relationship where all object have their own lifecycle and there is no owner. Let’s take an example of Teacher and Student. Multiple students can associate with a single teacher and a single student can associate with multiple teachers but there is no ownership between the objects and both have their own lifecycle. These relationship can be one to one, One to many, many to one and many to many.

Q7. What do you mean by aggregation?

Aggregation is a specialized form of Association where all object have their own lifecycle but there is ownership and child object can not belongs to another parent object. Let’s take an example of Department and teacher. A single teacher can not belongs to multiple departments, but if we delete the department teacher object will not destroy.

Q9. What is composition in Java?

Composition is again specialized form of Aggregation and we can call this as a “death” relationship. It is a strong type of Aggregation. Child object dose not have their lifecycle and if parent object deletes all child object will also be deleted. Let’s take again an example of relationship between House and rooms. House can contain multiple rooms there is no independent life of room and any room can not belongs to two different house if we delete the house room will automatically delete.

Q10. Why there are no concrete implementations of Iterator interface?

Iterator interface declare methods for iterating a collection but it’s implementation is responsibility of the Collection implementation classes. Every collection class that returns an iterator for traversing has it’s own Iterator implementation nested class.
This allows collection classes to chose whether iterator is fail-fast or fail-safe. For example ArrayList iterator is fail-fast whereas CopyOnWriteArrayList iterator is fail-safe.


Tuesday, December 18, 2018

Java Training in Chandigarh


Java Training in Chandigarh offers you a comprehensive course to take your career on the fast track. Set your Career on High Gear with the great training institute.



Our java training course includes basic to forward level and get the job placement in top MNC’s companies. We offer java training courses from 4 weeks – 6 months to fresher as well as experience. Our oracle java certified experts and experienced professionals will help you to reinforce your skills on live projects. The candidate who has enrolled with us for java courses are placed on top-notch global companies. We provide a java training program, which includes OOPS concepts, advanced features, program designs and the use of various packages.

Our institute engaged with the lab facilities and excellent infrastructure. The java course fees customized and based on the student requirements. In our java course, you will get fortunate to learn updated java language, exception handling, packages, swings, hand on practice on Java real-time project and placement training.

We already know that Java is a Platform Independent programming language that is first introduced by Sun Microsystems in 1995. Java is ruling most of the software industries, and hence there are a lot of applications and websites are developing every day. From desktop to data centers, game consoles to scientific supercomputers, cell phones to the internet, java is everywhere. Java is simply fast, secure, and reliable. The best benefit of the Java programming language is that it is free and its syntax resembles C-programming language which makes it easier for the developer to develop an application in Java. The Java Development Kit consists of tools that manage the memory accurately, and because of such tools, the good news is that it doesn't have pointers concept in it, which makes Java simpler.

Java programming is an object-oriented programming language. Core java means a factor of java programming language. We have an experienced developer's main intention is to provide java technology training so you can early resolve the coding issues, develop robust programs and applications using any platform include – oracle’s application server and web infrastructure software. We also offer regular, weekend and fast-tracking training in java.

Get the benefit of java course in Chandigarh after the training session, you can create multithread programs, GUI applications with swing components (panel, button, label, text field, and text areas), use of the pattern and other data collections, encapsulation, inheritance and polymorphism, java technology data types and expressions. When the fulfillment of classroom training, you will get the unplaned to enhance your skills by practice on live projects with the help of experienced java developers. After handing on practice on the projects, the student will go through the interview preparation and recruitment process in IT industries.

Assuming that you are the fresher and want to make a career in JAVA, you have come to the right place. We indicate all java basics and take your knowledge to advance level. We carry you through the live environment in which you will get an opportunity to work on projects according to your skillset. Our committed professionals and facilities make us worth Java Training in Chandigarh.

Today we live in a DATA world. To make a small web application in the cell phone to a big enterprise application that runs on the internet, we use Java/ J2EE programming language. Java programming is simple, object-oriented, robust, secure, architecture-neutral and portable, high performance, interpreted, threaded and dynamic.

Who Java is suitable for?

Freshers (BE, BTech, BSc, BCA, MSc, MCA & any other graduates*) who ready to make a career as a Software developer, Engineer, Web Application Developers.can also take up this course.

Job opportunities in Java

Nowadays, everyone wants their business to be automated and distribute over the internet. The whole world is becoming smarter and the internet reached even remote areas. Many companies look for Java because of its secure, distribute, simple, maps easily to real-time objects. 90% company’s choice is Java for their business. So join Java training Chandigarh at INFO CAMPUS for your career growth.

Importance of Java

Java is one of the best programming languages created ever, and I am not saying this because I am a passionate Java developer, but Java has proved it in the last 20 years. The time of two decades is a big time for any Programming language, and Java has gained strength every passing day. Still, there are times when Java development slows down, but Java has responded well. There was a with groundbreaking changes in the form of Enum, Generics, and Autoboxing in Java 5, performance improvement with Java 6, and Google's choice of language for Android apps development keeps Java as a front-line programming language.

Why choose Java Training in Chandigarh :
  • 100% practical training + live projects.
  • Highly experienced android mentors cum developers.
  • Develop and publish many projects.
  • Flexible days and timings.
  • Placement assistance for a great career.
  • Hands-on java training.
  • Practical java code application.