ppti.info Education Scjp Core Java Book


Friday, May 17, 2019

Praise for the Sun Certified Programmer & Developer for Java 2 Study Guide awesome writing style & they literally burnt the core concepts into my head." " Don't hesitate to make this book your primary guide for SCJP preparation. The. Which Java book can beat Kathy Sierra's Java book (OCJP/SCJP)?. aQDhRhd dMe Her last book was for OCA / OCP Java SE 7 certification exam. There are number of . Which book is the best for core Java? 8, Views. Search results. of 22 results for Books: "Kathy Sierra" . Sun Certified Programmer For Java 5 Scjp (). by Kathy Sierra.

Language:English, Spanish, Indonesian
Published (Last):25.07.2015
ePub File Size:28.50 MB
PDF File Size:11.64 MB
Distribution:Free* [*Regsitration Required]
Uploaded by: DAGMAR

ppti.info - Buy Scjp Sun Certified Programmer for Java 6 Study Guide (Exam This book is simple awesome for all those who wants to master core java, and. this book owes James Nuzzi a big thank you for his meticulous job as . the basic syntax and structure of the Java programming language and can create Java. but it's a good head start. To really The web developer exam is for those who are using Java SCJP Sun SCJP Sun Certified Programmer for Java 6 Study.

Those things work the same way in most modern languages. Heck, even the multithreading APIs are much the same. That's really sad if that's the case. It's a great programming book, period, and it should live on. I hope the authors rework it into a general Java guide. For my part, I recommend it to anyone who wants to learn Java. The newer Java versions are mostly a superset of the old ones, so you won't be wasting your time. Okay, my take while reading the book and doing the quizzes at the end of each chapter was that this had to be the most worthless certification on the planet.

The quiz questions seemed more inclined to try to trick and misdirect than to really test anything of value, so I was pretty down on it as a result. But I had committed to taking the exam, so I prepared anyway.

OCPJP 8 / OCPJP 7 Exam Details

I read the book twice and did all the questions at the end, studying the answers ca The book seems good at what it is designed for. I read the book twice and did all the questions at the end, studying the answers carefully.

The real exam had virtually none of the dumb trickery that the practice stuff had.

So I'd say the book did a good job of tricking me into studying more than enough to pass the exam--I wish I had spent less time preparing, although I am happy with the result. If anything, the book's practice questions may be overly discouraging and difficult--they might cause some folks to give up on taking the real exam who ought to press ahead anyway. 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.

You might also like: FREE CORE JAVA TUTORIAL PDF

Not applicable virtual machine dependent Range: Not applicable but allowed values are true or false. Which of the following boolean declarations are valid? In java we are allowed to use any worldwide alphabets character and java is Unicode based and no. Any constant value which can be assigned to the variable is called literal.

Integral Literals: For the integral data types byte, short, int and long we can specify literal value in the following ways. Allowed digits are 0 to 9. Allowed digits are 0 to 7. Literal value should be prefixed with zero.

SCJP Sun Certified Programmer for Java 6

Which of the following are valid declarations? But whenever we are assigning integral literal to the byte variables and its value within the range of byte compiler automatically treats as byte literal. Similarly short literal also. Floating point literal is by default double type but we can specify explicitly as float type by suffixing with f or F. The only allowed values for the boolean type are true or false where case is important. We can specify that integral literal either in decimal or octal or hexadecimal form but allowed values range is 0 to Every escape character in java acts as a char literal.

Any sequence of characters with in double quotes is treated as String literal. The following 2 are enhansements 1. Binary Literals 2. For the integral data types untill 1. Decimal 2. Octal 3. The allowed digits are 0 to 1.

Literal value should be prefixed with Ob or OB. From 1. 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.

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. Array declarations: Single dimensional array declaration: 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. 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. 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. 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.

Please Share

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.August 30, at In java we are allowed to use any worldwide alphabets character and java is Unicode based and no. Very helpful for Java certification aspirants Dec 15, Linh rated it it was amazing This book If not for that, it would have been 5 stars. More filters. The certification will not only distinguish you from other candidates but also it would be very easy for you to clear any Java technical exam, which is asked as part of Interview.

Binary Literals 2.

CONCEPCION from Wisconsin
I enjoy reading books recklessly . See my other posts. I have always been a very creative person and find it relaxing to indulge in stone skipping.