Shift operator << or >> with Negative shift operand?

Posted by Shanky Sohar  •  November 30, 2011


Although shift operator is not in the objective of SCJP1.5 and SCJP1.6 now,so you will not get question related to it anytime when you give scjp exam.But for the sake of knowledge we should atleast know how the below program works

Read more


Enhanced For-Loop (specialized FOR-loop only for Array)?

Posted by Shanky Sohar  •  November 30, 2011


With Java 6,extension of FOR loop is introduced which is why this is called as enhanced FOR-loop,as this removes the boolean expression and iterator part.Enhanced FOR-Loop do it automatically

Read more


Loops and iterators i.e do,while,for loops?

Posted by Shanky Sohar  •  November 30, 2011


The loops and iterators are of three types i.e while,do and for .Usage:- These are used when you want a specific block of code to be repeated again and again based upon some condition being true.

Read more


How to attach JDK source code in Eclipse?

Posted by Shanky Sohar  •  August 14, 2011


When we are doing the coding most of the time we need to look at the JVM class but we cann't and need of internet connection arises at that time but it is not always possible to connect to Internet 24x7x365.So here we can save our time by not googling atleast JVM class included in our JDK kit.We can view the source code directly by clicking on the class.

Read more


What is Log4j and what are its features?

Posted by Shanky Sohar  •  August 14, 2011


Log4j is a java based logging utility & is most useful & effective while debugging the application.There is some many Java logging frameworks are available but log4j is mostly used.

Read more

What is interface and how to implement it?

Posted by Prasad Kharkar  •  May 29, 2011


In simple language..an interface is a contract that is to be fulfilled by the classes that implement the interface. wasn't that easy to understand ? ok we have a good example.

Read more


Static As a Shared Variable?

Posted by Prasad Kharkar  •  May 29, 2011


In the last part of our tutorial about the static variables and the instance variable we have understood the concept of the static and the instance variable very well. Now is the time to really understand what exactly the last tutorial meant.. in this tutorial we will take one small program that will have one static variable and will have many instance variables which will change the static variable and all those instance variables will share only one copy of static variable. Now let us start having fun with the code and the diagrams (we are coders so we should enjoy coding and studying isn't it?

Read more


Conditional/Decision control using If/Switch statement?

Posted by Shanky Sohar  •  May 15, 2011


This allows your code to behave differently based upon some conditions.There are also some looping constructs like for,while,do-while and do that allow your code to execute again and again based upon some condition being true or false.If-else Branching.

Read more


What is var-args and how & where we use them?

Posted by Prasad Kharkar  •  May 15, 2011


Till Now in my earlier tutorials,we have studied about the static variables and how they are shared across the instance of the same class, we will now move towards another interesting topic i.e. var-args, the name var-args stands for the variable arguments Till now we have known about the methods that contain some specific number of parameters at compile time only, the method know the number of the arguments that is taking in, Lets look a

Read more


Define types of variables and their scope?

Posted by Prasad Kharkar  •  April 16, 2011


Now that we have learned how to write a simple java program and how to compile and execute it , we will try to move our focus to OCPJP preparation, our first objective in this course will be to know what are..

Read more


How to provide command line arguments to your code in Eclipse?

Posted by Shanky Sohar  •  April 16, 2011


This is most widely used when you want to test your application especially in case of unit testing.Sometimes you need to supply some command line arguments to your main method..

Read more


Page 1   Page 2   Page 3   Page 4   Page 5  

Subscribe to SCJP Material

Be the first one to post your comments