resourceone.info Art Durgasoft Java Notes Pdf

DURGASOFT JAVA NOTES PDF

Monday, August 5, 2019


Core Java with SCJP/ OCJP Notes By Durga Sir Language Fundamentals nd DURGASOFT, # ,2 Floor,HUDA M aitrivanam,Ameerpet, Hyderabad - . Page 1. Durgasoft SCJP Notes. Part-2 resourceone.info 1 of Page 2. resourceone.info 2 of Page 3. Page 1. Durgasoft SCJP Notes. Part-1 resourceone.info 1 of Page 2. resourceone.info 2 of Page 3.


Durgasoft Java Notes Pdf

Author:ANNEMARIE SURKAMER
Language:English, Spanish, Indonesian
Country:Czech Republic
Genre:Personal Growth
Pages:181
Published (Last):12.07.2016
ISBN:705-1-69597-626-7
ePub File Size:20.77 MB
PDF File Size:19.63 MB
Distribution:Free* [*Regsitration Required]
Downloads:24010
Uploaded by: RAISA

DURGA'S. Note Book .. (e) tag libraries, (d). JAR files, and (e) Java class files; and describe 98% from Durga Software Solutions. I have learnt. Java and. Documents Similar To Durga Soft PDF Part I. Durga Core java. Uploaded by. kumar_mail. JSP (Natraz Sir Notes)resourceone.info JSP (Natraz Sir Notes)- JavaEra. DurgaSoft SCJP Notes Part-I Download - resourceone.info is a famous faculty in Hyderabad. He teaches the core java for the beginners and also will.

I have been very busy trying to cut trees. If we are just busy in applying for jobs, when we will sharpen our skills to chase the job selection process? I got irritated like anything.

Ordered List

Ithought that like me, there may be millions of my brothers and sisters across the nation facing same kindof problem. Thousands of people gotbenefited by utilizing our resources.

This is just a start, what we have achieved till now is just 0. Now I am not alone in chasing this challenge. The main advantage of this approach is to improve memory utilization.

Example 2: System. If we are not satisfied with those default values then we can replays with our customized values. Declaration, construction and initialization of an array in a single line: We can perform declaration, construction and initialization of an array in a single line.

Example: length Vs length : length: 1. It is the final variable applicable only for arrays. It represents the size of the array.

E: cannot find symbol System. It is a final method applicable for String objects. It returns the no of characters present in the String. E:cannot find symbol System. There is no direct way to find total size of multi dimentional array but indirectly we can find as follows x[o]. Array element assignments: Case 1: In the case of primitive array as array element any type is allowed which can be promoted to declared type.

Example 1: For the int type arrays the allowed array element types are byte, short, char, int. E:possible loss of precision Example 2: For float type arrays the allowed element types are byte, short, char, int, long, float.

Case 2: In the case of Object type arrays as array elements we can provide either declared type objects or its child class objects. Note: In the case of object type arrays child type array can be assign to parent type array variable. They are: 1. Primitive variables 2. Instance variables 2. Static variables 3. But cannot be accessed directly from static area.

We have to declare such type of variables at class level by using static modifier.

Static variables should be declared with in the class directly but outside of any method or block or constructor. Start JVM. Locate find Test.

Load Test. Execution of main method. Unload Test. Terminate main Thread. Shutdown JVM. Local variables: Some times to meet temporary requirements of the programmer we can declare variables inside a method or block or constructors such type of variables are called local variables or automatic variables or temporary variables or stack variables.

Local variables will be stored inside stack. The local variables will be created as part of the block execution in which it is declared and destroyed once that block execution completes. Hence the scope of the local variables is exactly same as scope of the block in which we declared. Note: The only applicable modifier for local variables is final.

If we are using any other modifier we will get compile time error. For the static and instance variables it is not required to perform initialization explicitly JVM will provide default values. For every object a separate copy of instance variable will be created whereas for entire class a single copy of static variable will be created. For every Thread a separate copy of local variable will be created. Instance and static variables can be accessed by multiple Threads simultaneously and hence these are not Thread safe but local variables can be accessed by only one Thread at a time and hence local variables are Thread safe.

If we are not declaring any modifier explicitly then it means default modifier but this rule is applicable only for static and instance variables but not local variable. E: variable a might not have been initialized System. Every variable in java should be either instance or static or local.

Part-1 (DurgaSoft SCJP notes) www.JavaEra.com

Every variable in java should be either primitive or reference Hence the following are the various possible combinations for variables Var- arg methods variable no of argument methods 1.

Of arguments.

Of arguments such type of methods are called var-arg methods. We can call or invoke this method by passing any no. Of int values including zero number also.

Example: methodOne int a,int Example: methodOne int Case 6: For the var-arg methods we can provide the corresponding type array as argument. Cannot declare both methodOne int Note : 1. The allowed digits are 0 to 1.

Literal value should be prefixed with Ob or OB. Introduction An array is an indexed collection of fixed number of homogeneous data elements. The main advantage of arrays is we can represent multiple values with the same name so that readability of the code will be improved.

DurgaSoft SCJP Notes Part-I Download

But the main disadvantage of arrays is: Fixed in size that is once we created an array there is no chance of increasing or decreasing the size based on our requirement that is to use arrays concept compulsory we should know the size in advance which may not possible always. We can resolve this problem by using collections. E: expected invalid Note : If we want to specify the dimension before the variable that rule is applicable only for the 1st variable. Second variable onwards we can't apply in the same declaration.

Example: Array construction: Every array in java is an object hence we can create by using new operator. E:array dimension missing Rule 2: It is legal to have an array with size zero in java.

By mistake if we are using any other type we will get compile time error. Multi dimensional array creation: In java multidimensional arrays are implemented as array of arrays approach but not matrix form.

The main advantage of this approach is to improve memory utilization. Example 2: System.

If we are not satisfied with those default values then we can replays with our customized values. Declaration, construction and initialization of an array in a single line: We can perform declaration, construction and initialization of an array in a single line.

Example: length Vs length : length: 1. It is the final variable applicable only for arrays. It represents the size of the array. E: cannot find symbol System. It is a final method applicable for String objects. It returns the no of characters present in the String.

E:cannot find symbol System. There is no direct way to find total size of multi dimentional array but indirectly we can find as follows x[o]. Array element assignments: Case 1: In the case of primitive array as array element any type is allowed which can be promoted to declared type. Example 1: For the int type arrays the allowed array element types are byte, short, char, int.

E:possible loss of precision Example 2: For float type arrays the allowed element types are byte, short, char, int, long, float. Case 2: In the case of Object type arrays as array elements we can provide either declared type objects or its child class objects. Note: In the case of object type arrays child type array can be assign to parent type array variable. They are: 1. Primitive variables 2. Instance variables 2. Static variables 3.

Complete Java Materials….Ameerpet/MNC’s notes very easy to understand…!!!

But cannot be accessed directly from static area. We have to declare such type of variables at class level by using static modifier. Static variables should be declared with in the class directly but outside of any method or block or constructor. Start JVM. Locate find Test. Load Test. Execution of main method.

Related titles

Unload Test. Terminate main Thread.

Shutdown JVM. Local variables: Some times to meet temporary requirements of the programmer we can declare variables inside a method or block or constructors such type of variables are called local variables or automatic variables or temporary variables or stack variables.

Local variables will be stored inside stack. The local variables will be created as part of the block execution in which it is declared and destroyed once that block execution completes. Hence the scope of the local variables is exactly same as scope of the block in which we declared.

Note: The only applicable modifier for local variables is final. If we are using any other modifier we will get compile time error. For the static and instance variables it is not required to perform initialization explicitly JVM will provide default values. For every object a separate copy of instance variable will be created whereas for entire class a single copy of static variable will be created.

For every Thread a separate copy of local variable will be created. Instance and static variables can be accessed by multiple Threads simultaneously and hence these are not Thread safe but local variables can be accessed by only one Thread at a time and hence local variables are Thread safe.

If we are not declaring any modifier explicitly then it means default modifier but this rule is applicable only for static and instance variables but not local variable.In java we have only new keyword but not delete because destruction of useless objects is the responsibility of Garbage Collection.

Static variables should be declared with in the class directly but outside of any method or block or constructor. Floating Point Data types: E:malformed floating point literal invalid 4. Even though above syntax is very strict but the following changes are acceptable to main method.

Floating Point Data types: Float double If we want to 5 to 6 decimal places of If we want to 14 to 15 decimal places of accuracy then we should go for float.

Why we need those skills? Literals: Any constant value which can be assigned to the variable is called literal. I was a job seeker like you all but I was not sure about how to attempt an interview or various companies selection process.