Java

What is Inheritance

In our day to day life, we use a word inherit which simply means-‘to receive from an ancestor by legal succession or will’. We use this term generally in case where a child inherits his/her parents’ properties or where a parent-child relationship exists. This process of inheriting the properties is referred as inheritance. Similarly, in java the term inheritance, is also used where a parent child relationship exists, but instead of human beings here parent as well as child is a class. Inheritance is a concept using which a class can inherit the properties of another class. Inheritance allows the […]

What is Inheritance Read More »

Generics and Polymorphism

In the previous two articles related to Generics we learned about generics usage and concepts. In this article, let us focus on the aspect of polymorphism and how generics support polymorphism. In general, polymorphism applies to the base type of the collection. For example, the following code creates an ArrayList which can hold Integers. Note that in the following code the base type is List and sub type is ArrayList(since ArrayList is a sub class of List). List<Integer> numberList = new ArrayList<Integer>(); In the above code snippet, List and ArrayList are ‘base’ types and Integer is the generic type. Because

Generics and Polymorphism Read More »

Java Virtual Machine

Whenever we are asked what makes java different from other programming languages, the first answer that pop-up in our mind is “Java is platform independent”, and Java Virtual Machine is simply held responsible for this. But have we ever thought that what actually was the need of platform independence and how java is platform independent? Or what exactly JVM does? Well, you can find the answers to these questions, below. A code written in any programming language is very closely bound to the specific hardware and operating system it runs on. For example, a Mac application can’ run on a

Java Virtual Machine Read More »

Understanding Generics

In the previous article, we learned about the basics of generics and its usage. In this article, we’ll go one level down and understand the semantics of generics and how compiler handles generics code. To quickly recap, generics provides compile-time safety. When we provide the type information in the angle brackets (< … >), the compiler will use this type of information to make sure that we do not put objects with different type into the collection. This safety check happens at compile time only. Generics can also be used for method parameters for the type safety of arguments, and

Understanding Generics Read More »

JAVA GENERICS – BASIC USAGE

Generics is an important feature of Java which was introduced in the version 1.5. Generics allows us to create generalized collections and provides a way of type safety at compile time. Generalized collections means any collection from java.util package which only accepts a particular type. For example, an ArrayList of String objects can be considered as a generalized list. With the help of Generics, we can ensure that our ArrayListor of any other collection only accepts any specific type of objects. This safety check is done at compile time. Before the introduction of Generics (Java 1.4 and previous versions), developers

JAVA GENERICS – BASIC USAGE Read More »

Whizlabs OCAJP 7 (Code : 1Z0-803) Exam Simulator Launched

The New Whizlabs Exam Simulator of Oracle Certified Associate, Java SE 7 Programmer I (OCAJP 7) is in accordance with the Oracle Certification Exam. The Simulator features are : 4 Full length mock exams with 360 Unique Questions. Objective based Practice Tests. Exhaustive Explanation with Every Question. Reports to assess Strengths & Weaknesses. 100% Syllabus covered. All 8 Exam Objectives covered. Tips & Tricks: Know the secrets of the Exam. Revise quickly with study notes. 100% Unconditional Test Pass Guarantee OCAJP 7 Objectives : Java Basics Working with Java Data Types Using Operators and Decision Constructs Creating and Using Arrays

Whizlabs OCAJP 7 (Code : 1Z0-803) Exam Simulator Launched Read More »

Oracle Certified Master, Java EE 6 Enterprise Architect : Beta Exam

OCMJEA certification signifies that the person is capable of handling advanced design skills and lead roles in creating applications. The certified person demonstrates good understanding of architecture and Java EE Technology for business applications. NOW, Oracle is out with the OCMJEA 6 Beta Version. Exam Name : Oracle Certified Master, Java EE 6 Enterprise Architect Exam No. : 1Z1 – 807 Duration : 2.5 – 3 Hrs No. of Questions : 90 – 150 Passing Score : As it is a Beta Exam, the score will be decided later on. (approximately after 11 weeks) It is a multiple choice examination.

Oracle Certified Master, Java EE 6 Enterprise Architect : Beta Exam Read More »

Guidelines & Recommendation on changes in Oracle Certified Master, Java EE5 Enterprise Architect (earlier known as SCEA) Certification

Oracle is changing certification requirements from 1st October, 2011 but this article summarizes all the information with respect to the same. If you want to do certification in current format, here are the important guidelines: You need to clear all three steps (multiple choice exam, assignment & essay) before 30th September, 2011 If you want to ensure that you receive grade before 30th Sep, you need to submit your assignment (2nd part) & essay (3rd part) before 27th August Otherwise, you can still submit your assignment & essay before 30th Sep, but if you fail in that, resubmission requires meeting new certification requirements.

Guidelines & Recommendation on changes in Oracle Certified Master, Java EE5 Enterprise Architect (earlier known as SCEA) Certification Read More »

5 Reasons that make OCPJP Exam tough

You start preparing for the OCPJP exam with lots of zeal and enthusiasm. You do various researches on the internet, read various Java forums and also buy that 1st book on OCPJP exams. You are now really committed to study 2-3 hours every day and clear the exam in about 1-3 months time. The next few days go by and you didn’t get those initial 2 hours to study. Then a whole week goes by and you start getting a little worried as you promised to give it more time over the weekend…….sounds familiar. We asked many OCPJP exam takers

5 Reasons that make OCPJP Exam tough Read More »

Ten Most Common Errors in Java :

It’s natural to make mistake, even if you are new to java or an expert in coding. Here’s a list of common mistakes done while coding in java : 10. Method Overriding – mismatch of the method name: Overriding is very helpful feature and is heavily used in java. Easiest way of trap is mistype of the method name. If we mistype the name, we are no longer overriding the method but creating a new method but with the same parameter and return type. Compiler doesn’t not pick up this kind of problem and it can lead to frustrating results.

Ten Most Common Errors in Java : Read More »

Scroll to Top