Showing posts with label scjp. Show all posts
Showing posts with label scjp. Show all posts

Tuesday, July 28, 2015

scjp summary


Before we dig into class declarations, let's do a quick review of the rules associated with declaring classes,
  There can be only one public class per source code file.
Comments can appear at the beginning or end of any line in the source code file; they are independent of any of the positioning rules discussed here.
If there is a public class in a file, the name of the file must match the name of the public class. For example, a class declared as public class Dog { } must be in a source code file named Dog.java.
If the class is part of a package, the package statement must be the first line in the source code file, before any import statements that may be present.
the first line in the source code file.
If there are import statements, they must go between the package statement (if there is one) and the class declaration. If there isn't a package statement, then the import statement(s) must be the first line(s) in the source code file. If there are no package or import statements, the class declaration must be
import and package statements apply to all classes within a source code file. In other words, there's no way to declare multiple classes in a file and have them in different packages, or use different imports.

Class Declarations and Modifiers
Java is a package-centric language; the developers assumed that for good organization and name scoping, you would put all your classes into packages.
They were right, and you should. Imagine this nightmare: Three different programmers, in the same company but working on different parts of a project, write a class named Utilities. If those three Utilities classes have not been declared in any explicit package, and are in the classpath, you won't have any way to tell the compiler or JVM which of the three you're trying to reference. Sun recommends that developers use reverse domain names, appended with division and/or project names. For example, if your domain name is geeksanonymous.com, and you're working on the client code for the TwelvePointOSteps program, you would name your package something like com.geeksanonymous.steps.client. That would essentially change the name of your class to com.geeksanonymous.steps.client.Utilities. You might still have name collisions within your company, if you don't come up with your own naming schemes, but you're guaranteed not to collide with
classes developed outside your company (assuming they follow Sun's naming  convention, and if they don't, well, Really Bad Things could happen).
A file can have more than one nonpublic class.Files with no public classes can have a name that does not match any of the classes in the file.

import statements, and package statements in a source file:

Source File Declaration Rules

Saturday, January 21, 2012

How to get certified with Oracle



After spending around  year as a Java Developer  I thought of having a certification in Java. I  have started google to get the information.  So I want to share the information with you all which might helpful for you all.

Sun offers six levels of Certification exams for Java technology developers. In increasing level of difficulty, these are - 
  1. Sun's Java Associate (SCJA)
  2. Sun's Java Programmer Certification (SCJP)
  3. Sun's web component Developer Certification (SCWCD)
  4. Sun's business component Developer Certification (SCBCD)
  5. Sun's Developer for Java Web Services (SCDJWS)
  6. Sun's mobile application Developer Certification (SCMAD)
  7. Sun's Java Developer Certification (SCJD)
  8. Sun's Java Architect Certification (SCEA)

I have started searching the kind of certification I can go through. I found the relevant one for me is following :
Exam Number:1Z0-851
Associated Certifications:Oracle Certified Professional, Java SE 6 Programmer (SCJP 6.0)
Exam Registration:Register

About the Contents :
The Sun's Java Certification Programmer 6 exam consists of 60 questions. These need to be completed in 210 minutes. To clear the certification exam you need to get 61% correct answers.
There are three type of questions in the exam - 
  1. Multiple choice questions in which you have to select one or more correct answers from a set of options. A majority of the questions are of this type. In the exam it would be clear from the question whether it has one correct answer or multiple correct answers. For questions with multiple correct answers, you must get all the correct answers, to get credit for that question. Also these type of questions will mention the number of correct answers.
  2. True or False type questions
  3. Questions that require you to drag and drop items from one column to another.
The test paper covers contents (what I found is) as follows :

Declarations, Initialization and Scoping
Flow Control
API Contents
Concurrency
OO Concepts
Collections / Generics
Fundamentals

* Will discuss above points in my coming blogs.

The details can be found on the oracle's websites  Click Here

Where To take Exam

Now we know what should be the done but where and  how to get the exam. Lets talk about the same.
First get your nearest vendor affiliated with Oracle. you can find the nearest vendor from the Pearson VUE.
For scheduling your exam you need to have a web account with the Pearson VUE. once registering with the site you can get your login credentials with 24 hours.
After getting the credentials you can select the type of the certification you are going to join. In case of SCJP 6.0 we have to select following :




  • Once you logged in with the specific vendor you can see all the certification available with that Vendor. 
  • Select your's and you will be prompted for the search and select of the nearest center where you can give your exam.
  • After selecting the centre you will be get options to get the appointment for the exam. 
  • The selection of dates lands you on the payment page. Once you done with the payment you will get the e-receipt. Or if you don't want to pay online you can contact to your Test center.


For more help or guidelines Click Here






Java garbage collection

In this post , we ’ ll take a look at how garbage collection works , why it ’ s important in Java , and how it works in...