Friday, 9 June 2017
Monday, 3 April 2017
Working of String – Java Course
Java is platform independent. Java Course helps to develop
career in Java Industry. Get Training and learn to develop projects in Java.
Following is the one part of Java Course. – Working of String
According to Oracle String in Java are sequence of
characters and are represented by a class java.lang.String.
So in simple words String in Java are objects.
Declaration for String class looks like this
public final class String extends Object
String in Java are of nature Immutable as they are declared
as final.
String can be declared in multiple ways in java
For example
String str="Java";
In this case str is a String literal as it is declared
directly using = sign.
While execution JVM creates a String object and store it in
Object Heap.
Other way of Declaration
String s=new String("Hello");
or
char[] charArray=new char[]{'s','u','c','c','e','s','s'};
String s1=new String(charArray);
An important concept which many people don't take notice of
is the following situation.
String str="java";
str=str.concat("withz.in");
System.out.println(str);
String is of nature final and final objects can change their
reference.
So what happens when we print this and how many String
objects are created in this process.
On the very first line.
String str="java";
JVM created a new object with value "java".
When we concat other String "withz.in" in the
original String str.
But as String is of nature final it cannot make changes in
the same object reference, hence it first creates a new object
"withz.in" and then concat the other two Strings and create a new
String "javawithz.in" and we have used assignment operator
str=str.concat("withz.in");
Now str points at the third object created and first two
objects lies unidentified in Heap and when we print we print it we get output
as "javawithz.in"
Now let us take another example for understanding the same
concept
String str="java";
str.toUpperCase();
System.out.println(str);
Now in this case when the first line got executed JVM
created a new String object "java" and str was pointing at the same
object.
Then we did
str.toUpperCase();
This created a new Object with value "JAVA" but as
we haven't used any assignment operator str is still pointing at old reference
and not the new.
So when we print it we will get "java".
Java Course in Mumbai is one of the best
option for developing career in Java. 100% Industrial knowledge, Experienced Faculty,
Interview Preparations are main key features of Asterix Solution. For more
details, visit www.asterixsolution.com/java-training.html
/
Call : +91 982 168 1514 / +91 771
503 6251
Saturday, 11 February 2017
Java Training Program
Java Training Program for Beginners helps to develop career in Java Industry. Asterix Solution offers 3 Demo Lectures free on Java Training. Java Training Program Includes Core Java, Advanced Java, Spring , Hibernate, Java Mailing etc. For More Details, visit : www.asterixsolution.com/java-training.html
Monday, 6 February 2017
Introduction to Class in Java
Java
Class
·
Class is a template or blue print which is used
to describe an object.
·
Class is one of the most important and
misunderstood concept.
Class has got various definitions,
- Class is user defined data type.
- Class is an Abstract Data Type(ADT).
- Class is collection of variables and methods.
All the given definitions are really true but for a person
who have just started to understand Java it becomes a bit tedious to
understand.
Class is just a planning or a design on which object
referring to it will be built upon.
Have you ever imagined why Fish cannot fly or Eagle cannot
swim?
Answer is very simple because flying is not a
characteristics of Fish and swimming is characteristics of Eagle.
If you understand this understanding concept of class will
become easier.
Remember a class is made up of following content and all of
this are optional, because if you try to do something like this.
class Demo
{
}
It will compile fine.
So a class can be made up of,
1) Variables
2) Methods
3) Constructors
4) Inner Classes
So assume for example if a class A contains certain methods m1(),
m2(), m3().
It will be only able to access those methods and not any
other methods (Assuming class has not inherited any other class other that
java.lang.Object)
So in simple words "AN OBJECT OF A CLASS CAN ACCESS
ONLY THOSE METHODS WHICH ARE DEFINED INSIDE IT'S CLASS, NOTHING MORE OR NOTHING
LESS".
So as discussed, class Eagle does not have a variable fin
and method swim() hence it cannot swim but same are the variables and methods
of Fish, hence it can swim().
Same way Fish does not have variable wing and method fly()
hence it cannot fly, but same are the variables and methods of Eagle so it can
fly.
Now let us have a look at technical aspect of Class.
class is defined by a keyword class
class Fish
{
int fin;
Fish()
{
System.out.println("Inside constructor of Fish");
}
public void swim()
{
System.out.println("Swim of Fish");
}
}
Get Best Training from best Java Classes in Thane. i.e. Asterix Solution.
Asterix Solution is best Java Classes in Thane providing industrial based
quality training with live project working experience and personality
development sessions and Interview Preparation Sessions to easily crack
interviews. You can get more details on Java Training here : www.asterixsolution.com/java-training.html or
call : +91 982 168 1514
Wednesday, 25 January 2017
3 reasons you should join a career training before you complete your last semester
By the time you were coming out of the hangover of New Year
celebration, you realize that 4-5 months down the line you will be giving
interviews and be in actual IT Industry. While many of the students opt for
trying their luck of getting jobs directly in the campus, but as per the stats
only 15-20% of the students get selected.
“75% of engineering and
80% of non-engineering graduates requires retraining after completing their
college.”
Dr. A.P.J. Kalam in an
interview to Arnab Goswami
You will be required to take your career oriented training
to master the skills sometime in your life and the factor which decides it is
the time when you opt for it.
Is joining such training before completing your last
semester is good idea or not.
I will give you 3 simple reason supporting my point.
1.
Helps you crack your college campus interview easily.
2.
Final Year project become fun to make.
3.
Gives the edge of time compared to other students.
1. Helps
you crack your college campus interview easily.
Getting placed in college campus is one of the great things
that can happen in a student's career. Companies which come on campus doesn’t
pick up every other student, they are looking for the best in the lot. Career
Oriented Training like our 50 Days Java Training helps you get the extra edge
over other students as such training courses also trains you for Interview.
Cracking an interview is not a luck game but it is a science where a vendor is
looking for a resource and you have be an asset for them. It is not possible
that you will fit for all the requirements of all the companies that come for
campus. But to excel where you fit requires hard work and training.
2. Final Year project become fun to make.
-
Final Year project is the mega event in life of all the
graduation students. Finally all the things they have learnt during their
graduation is put together and the final implementation of the project is
created. But contrary to the beliefs 50% of the students just pick up the
projects from some senior or worst scenario they buy it from some developer.
Major reasons for doing so is really simple LACK OF KNOWLEDGE ABOUT CODING
LANGUAGES AND IMPLEMENTATION. Our Training Program like Android and Java
Developer Training helps you overcome that as this training programs covers a
vast array of concept based implementation. Our Java Training encompass around
450 programs executed and Android Training covers development of around 50 apps
with added benefit of Project Guidance for Graduation and Postgraduate
students.
3. Gives the edge of time compared to other
students.
-
Competition with others is not healthy but competing
with yourself is always an added benefit. I do not believe in Competition but
in Domination. Dominate the field you want to excel. Time is the biggest asset
you have and utilizing it in an optimized way is the signature of successful.
Getting trained before your last semester give you an extra edge over the time
as you can decide the technology of your comfort and the major advantage is
that while others are planning their future you actually get started working on
it.
-
Asterix Solution is a renowned name in the field of IT
Training for last 3 years with presence in Thane and Vashi. Our Trending
Training Programs like 50 Days Java Training Program, Big Data Hadoop
Training and Android Training have proved to be life changing for around 1000
students we trained at our centres and college workshops and tie up programs.
Visit us on www.asterixsolution.com
Subscribe to:
Posts (Atom)