Quantcast
Channel: Tech Tutorials
Browsing all 862 articles
Browse latest View live

SerialVersionUID And Versioning in Java Serialization

If you ever implemented Serializableinterface in Java then you would have seen the warning “The serializable class XXX does not declare a static final serialVersionUID field of type long”. If you ever...

View Article


Reflection in Java - Getting Constructor Information

Similar to reflection API for methods, there is also reflection API to get information about the constructors of a class. Using java.lang.reflect.Constructor class in Java reflection API you can get...

View Article


Transient Keyword in Java With Examples

In the post Serialization in Java it has already been discussed that serialization is the mechanism by which any object can be converted to byte stream. By default all of the object variables are...

View Article

Externalizable Interface in Java

Serialization in Java provides a pretty good default implementation for serializing and deserializing an object. All you need to do is to implement Serializable interface and the whole process is...

View Article

Image may be NSFW.
Clik here to view.

Serialization and Deserialization in Java

Object serialization is the mechanism of converting object into byte stream. Where as the reverse process of recreating the object from those serialized bytes is known as deserialization. In this post...

View Article


Python Program to Display Prime Numbers

In this post we'll see a Python program to display prime numbers in the given range. This program helps in understanding usage of nested loops and it also shows a use case where for loop with else in...

View Article

Python Program to Check Prime Number

In this post we'll see a Python program to check whether the passed number is a prime number or not. This program also shows a use case where for loop with else in Python can be used. A number is a...

View Article

Default Arguments in Python

In Python, function arguments can have default value. If the function is called without the argument that already has a default value then the default value is used otherwise the passed value overrides...

View Article


Variable Length Arguments (*args), Keyword Varargs (**kwargs) in Python

In this article we’ll see what are variable length arguments (*args) in Python and what are keyword variable length arguments (**kwargs) in Python.Table of contentsVariable length arguments in...

View Article


Ternary Operator in Python

In Python there is no ternary operator in the form of (:?) as in programming languages like c, c++, Java. Python ternary operator is an if-else conditional expression written in a single line.Form of...

View Article

Python Generator, Generator Expression, Yield Statement

In this article we’ll learn about generators in Python and how and why to use them.The three things that you need to understand to master generators are- Generator functions itself.Generator...

View Article

Type Erasure in Java Generics

When generics was introduced in Java there was a requirement for it to be compatible with the existing code, written in previous versions, which of course was non-generic. That is why you can still add...

View Article

Python Program to Check Armstrong Number

In this post we'll see a Python program to check if a given number is an Armstrong number or not.An Armstrong number is a number that is equal to the sum of the digits in a number raised to the power...

View Article


Python Program to Display Armstrong Numbers

In this post we'll see a Python program to display Armstrong numbers with in the given range.An Armstrong number is a number that is equal to the sum of the digits in a number raised to the power of...

View Article

List Comprehension in Python With Examples

List comprehension in Python is a simple way to create a List from an iterable, it consists of an expression, a loop, an iterable that is iterated using the loop and an optional condition enclosed in a...

View Article


Python Program to Reverse a String

In this post we'll see how to write a Python program to reverse a string, there are several options to do that, the options given in this post are listed below- Using a loop to reverse a string.Using a...

View Article

Image may be NSFW.
Clik here to view.

Linked List Implementation Java Program

In this post we’ll see an implementation of Linked List in Java. Operations covered in this singly Linked List implementation are- Insert element at the beginning of a Linked List.Insert element at the...

View Article


Python Program to Check Whether String is Palindrome or Not

This post is about writing a Python program to find whether a given string is a palindrome or not.A String is a palindrome if reverse of the string is same as the original string. For example "madam"...

View Article

Java Concurrency Interview Questions And Answers

In this post Java Concurrency Interview questions and answers are listed. This compilation will help the Java developers in preparing for their interviews.What is CountDownLatch in Java concurrency?...

View Article

Python Program to Check if Strings Anagram or Not

In this post we'll see a Python program to check if two strings are anagrams or not.Anagram StringsTwo strings are called anagram if you can rearrange the letters of one string to produce the second...

View Article
Browsing all 862 articles
Browse latest View live