cittadelmonte.info Fiction Durgasoft Core Java Material Pdf

DURGASOFT CORE JAVA MATERIAL PDF

Tuesday, May 28, 2019


Durga Core java - Download as Text File .txt), PDF File .pdf) or read online. Durga Core java. Durga Software Solutions Spring Material. Uploaded by. Core Java With SCJP OCJP Notes by Durga - Download as PDF File .pdf), Text File .txt) or read online. core java by durga soft ameerpet. Documents Similar To Durga Soft PDF Part I. Durga Core java. Uploaded by. kumar_mail. JSP (Natraz Sir Notes)cittadelmonte.info JSP (Natraz Sir Notes)- JavaEra.


Durgasoft Core Java Material Pdf

Author:LAHOMA AMMIRATI
Language:English, Spanish, Portuguese
Country:Fiji
Genre:Art
Pages:373
Published (Last):02.05.2016
ISBN:451-2-16873-312-8
ePub File Size:25.72 MB
PDF File Size:16.61 MB
Distribution:Free* [*Regsitration Required]
Downloads:35728
Uploaded by: PETRA

Core Java with SCJP/ OCJP Notes By Durga Sir Language Fundamentals nd DURGASOFT, # ,2 Floor,HUDA M aitrivanam,Ameerpet, Hyderabad - . JAR files, and (e) Java class files; and describe how to protect resource . totally unaware of java and don't know very basic concepts of java, but after going. SCJP/OCJP Core Java Material By DURGA,Core Java Material By All the cittadelmonte.info materials are for Educational Purpose only and all.

Skip to main content. Log In Sign Up. Jagadeesh jagadeesh. Introduction 2. Identifiers o Rules to define java identifiers: Reserved words o Reserved words for data types:

Array construction: Every array in java is an object hence we can create by using new operator. For every array type corresponding classes are available but these classes are part of java language and not available to the programmer level. At the time of array creation compulsory we should specify the size otherwise we will get compile time error. It is legal to have an array with size zero in java.

If we are taking array size with -ve int value then we will get runtime exception saying NegativeArraySizeException. NegativeArraySizeException Rule 4: The allowed data types to specify array size are byte, short, char, int. By mistake if we are using any other type we will get compile time error. The maximum allowed array size in java is maximum value of int size [].

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: Which of the following declarations are valid? Whenever we are trying to print any object reference internally toString method will be executed which is implemented by default to return the following. Example 3: NullPointerException Diagram: 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. It is the final variable applicable only for arrays. It represents the size of the array. It is a final method applicable for String objects. It returns the no of characters present in the String. There is no direct way to find total size of multi dimentional array but indirectly we can find as follows x[o].

Anonymous Arrays: 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. For the int type arrays the allowed array element types are byte, short, char, int.

DurgaSoft SCJP Notes Part-I Download

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. Case 3: In the case of interface type arrays as array elements we can provide its implemented class objects. Array variable assignments: A char value can be promoted to int type but char array cannot be promoted to int array.

In the case of object type arrays child type array can be assign to parent type array variable. Whenever we are assigning one array to another array internal elements won't be copy just reference variables will be reassigned hence sizes are not important but types must be matched. Whenever we are assigning one array to another array dimensions must be matched that is in the place of one dimensional array we should provide the same type only otherwise we will get compile time error.

Whenever we are performing array assignments the types and dimensions must be matched but sizes are not important. Total how many objects created? A B Types of Variables Division 1: Based on the type of value represented by a variable all variables are divided into 2 types. They are: Primitive variables 2. Primitive variables can be used to represent primitive values. Reference variables can be used to refer objects. Division 2: Based on the behaviour and position of declaration all variables are divided into the following 3 types.

Instance variables 2. Static variables 3. Local variables Instance variables: But cannot be accessed directly from static area. Static variables: 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.

Core Java Materials By All Ameerpet Faculties In PDFs- cittadelmonte.info

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.

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.

Un Initialized arrays Example: NullPointerException Example 2: Every variable in java should be either instance or static or local. 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. The sum: Which of the following var-arg method declarations are valid?

We can mix var-arg parameter with general parameters also. With in the var-arg method we can take only one var-arg parameter. Case 6: For the var-arg methods we can provide the corresponding type array as argument. Compile time error. Cannot declare both methodOne int Wherever single dimensional array present we can replace with var-arg parameter.

Wherever var-arg parameter present we can't replace with single dimensional array. Main Method Whether the class contains main method or not, and whether it is properly declared or not, these checking's are not responsibilities of the compiler, at runtime JVM is responsible for this. Even though above syntax is very strict but the following changes are acceptable to main method.

The order of modifiers is not important that is instead of public static we can take static public. We can declare string[] in any acceptable form o String[] args o String []args o String args[] 3. Instead of args we can use any valid java identifier. We can replace string[] with var-arg parameter. No case, in all the cases we will get runtime exception. Overloading of the main method is possible but JVM always calls string[] argument main method only. String[] array main method The other overloaded method we have to call explicitly then only it will be executed.

Inheritance concept is applicable for static methods including main method hence while executing child class if the child class doesn't contain main method then the parent class main method will be executed.

It seems to be overriding concept is applicable for static methods but it is not overriding it is method hiding. The main objective of command line arguments are we can customize the behavior of the main method. Example 4: Coding standards for classes: Coding standards for interfaces: Serializable 2. Runnable 3. Cloneable these are adjectives Coding standards for methods: Coding standards for variables: A java bean is a simple java class with private properties and public getter and setter methods.

Syntax for setter method: Method name should be prefixed with set. Primitive variables can be used to represent primitive values. But cannot be accessed directly from static area. Division 2: Based on the behaviour and position of declaration all variables are divided into the following 3 types.

Reference variables: Reference variables can be used to refer objects. Instance variables 2.

We have to declare such type of variables at class level by using static modifier. Start JVM. Execution of main method. Load Test. Static variables: Terminate main Thread. Static variables should be declared with in the class directly but outside of any method or block or constructor. Shutdown JVM. Locate find Test. Unload Test. JVM will always provide default values.

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.

Hence the scope of the local variables is exactly same as scope of the block in which we declared.

Durga Soft PDF Part I

The local variables will be created as part of the block execution in which it is declared and destroyed once that block execution completes. Local variables will be stored inside stack. If we are using any other modifier we will get compile time error. The only applicable modifier for local variables is final. For the static and instance variables it is not required to perform initialization explicitly JVM will provide default values.

NullPointerException Example 2: 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.

Un Initialized arrays Example: 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.

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. Of arguments.

Core Java Materials

Every variable in java should be either instance or static or local. Every variable in java should be either primitive or reference Hence the following are the various possible combinations for variables Var. Of arguments such type of methods are called var-arg methods.

Of int values including zero number also. We can call or invoke this method by passing any no. We can mix var-arg parameter with general parameters also HUDA Maitrivanam..

The sum: Which of the following var-arg method declarations are valid? With in the var-arg method we can take only one var-arg parameter. Case 6: For the var-arg methods we can provide the corresponding type array as argument. Compile time error.

Wherever single dimensional array present we can replace with var-arg parameter.. Wherever var-arg parameter present we can't replace with single dimensional array. Cannot declare both methodOne int. Main Method Whether the class contains main method or not. No case. Even though above syntax is very strict but the following changes are acceptable to main method The order of modifiers is not important that is instead of public static we can take static public.

We can declare string[] in any acceptable form o String[] args o String []args o String args[] We can replace string[] with var-arg parameter. Overloading of the main method is possible but JVM always calls string[] argument main method only. Instead of args we can use any valid java identifier. String[] array main method The other overloaded method we have to call explicitly then only it will be executed.

Inheritance concept is applicable for static methods including main method hence while executing child class if the child class doesn't contain main method then the parent class main method will be executed. It seems to be overriding concept is applicable for static methods but it is not overriding it is method hiding.

The main objective of command line arguments are we can customize the behavior of the main method. Example 4: It is highly recommended to follow coding standards. Coding standards for interfaces: Coding standards for classes: Cloneable these are adjectives Coding standards for methods: Runnable 3.

Coding standards for variables: Serializable 2. It should be public. Syntax for setter method: Return type should be void. Return type should not be void. Compulsory it should take some argument. A java bean is a simple java class with private properties and public getter and setter methods. It is always no argument method. The method name should be prefixed with get.

Syntax for getter method: Method name should be prefixed with set. But recommended to use is. For the boolean properties the getter method can be prefixed with either get or is. Coding standards for listeners: To register a listener: Method name should be prefixed with add.

The method name should be prefixed with remove. Class level binary data includung static variables will be stored in method area. Objects and corresponding instance variables will be stored in Heap area. Every entry in stack is called Stack Frame or Action Record. For every method the JVM will create a Runtime stack all method calls performed by that Thread and corresponding local variables will be stored in that stack.

The instruction which has to execute next will be stored in the corresponding PC Registers. Native method invocations will be stored in native method stacks. Flag for inappropriate content. Related titles. Jump to Page. Search inside document. Rules to define java identifiers: All predefined java class names and interface names we use as identifiers. Which of the following are valid java identifiers?

Sai Sandeep. Suhas Nipane. Srinivasa Reddy Challa. Anonymous tCTw9r. Sumit Rawal. RaJu SinGh. Somesh Suman. Kanumuri Vesrak Raju. Manish Thakur. Pravallika Repana. Ramana Reddy Mule. Sri Dharan. Renu Kumar. Bridget James.

You might also like: PDF FOR JAVA LANGUAGE

Kumar Gaurav. More From muralikrishna Manpreet Singh. Neeraj Kumar. Popular in Standards.

Shishan Ahmad. Kelly Obrien. Ahmed Saeed Ghonemy. Pablo Malgesini. Roberto Reyes. Saint Tyagi. Akshay Sarode. Arunashish Mazumdar. Juan Carlos Tarma Castillo. Mani Kumar. Norhanif Mohd Husain. Wajahat Ffbl. The Iron Cage Revisited: Institutional Isomorphism And.

HAZEL from Massachusetts
Look over my other posts. I have a variety of hobbies, like robotics. I love poorly .