Powered by Blogger.

Different type of Vararg rules in Java

>> Tuesday, November 25, 2014

While writing methods using variable arguments(var-args), we may confuse in different scenarios like where to put var-args in the parameters and how to place different type of arguments.Here we have given some rules with scenarios to understand easily. This will help you in the SCJP examination and as well, java interviews for freshers and experienced guys.
varargs rules JavabynataraJ

OCJP and Core Java class notes by RamiReddy sir

>> Monday, November 17, 2014

RamiReddy sir is a Oracle Certified Professional and OCJP(SCJP) trainer. He is a good faculty in java for the beginners. He gives more example programs on core java to understand core java in depth.Before going to the Class notes he has given some interview tips and how to improve communication skills with real time java interview questions. His java class will start with basics and anyone can understand easily.
SCJP and Core Java notes by RamiReddy sir_JavabynataraJ

Variable argument or varargs in Java

>> Thursday, November 6, 2014

The full form of var-args is variable length arguments and this one of the java 1.5 features.Also we have some important autoboxing, generics,for-each loop, static imports and some more. This feature is introduced to solve the problem in defining methods for taking '0' to 'n' number of arguments. These arguments should be of same types.  So, by using this feature we no need to define multiple overloaded methods for executing same logic with different no.of.values of same type.
java var-args explanation_JavabynataraJ

Related Posts Plugin for WordPress, Blogger...
© javabynataraj.blogspot.com from 2009 - 2022. All rights reserved.