Browsing Tag

Java Basics

32 posts
Java Tutorials

Invoke Method Using Java Reflection

Java provides reflection API to do introspection of an object and modify its behavior on the run time. The class Class in the Java API forms the basis to identify the object class and its internal structure of that particular Class. The below three functions are important to get the class behavior. In this articles we will see, how to invoke a method dynamically at runtime.
Read more
Java Tutorials

Covariant return type example in java

The covariant return type allows narrowing down return type of the overridden method. This feature will help to avoid down casting on the client side. It allows programmer to program without the need of type checking and down casting. The covariant return type always works only for non-primitive return types.
Read more
Switch-Case statement in Java

Switch-Case statement in Java

Switch case is another alternative for if-else statements. Switch case statement compares value in the object in the expression with the expressions associated with each case. A switch works only with primitive types like byte, short, char, and int and enumerated data types
Read more
Java Tutorials

Introduction to Java, JVM and Writing Your Fist Java Program

Java is a high level, English like, object-oriented programming language with tons of APIS (application programming interface) for developing applications. Java is a platform independent language with support for performing complex computation, graphics, server and mobile application development. Java language syntax looks pretty much like C and C++, however there are some differences such as absence of pointers, allows writing object-oriented code. Learning Java is easy for a developer with basic C programming experience.
Read more
By clicking “Allow All”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. Cookie Notice
Allow All