Python Tuples with Example – Python Tutorial

1 month ago codedestine 0
In Python tuple are a immutable sequence of objects just like a list. The difference between list and tuple is that data in the list can be changed while data in the tuple can not be changed. Tuples are used to store collection of data such as months in a year, which should not be change. In this tutorial, we will Read More

Python String with Example – Python Tutorial

1 month ago codedestine 0
In Python String are of Object type, this object contain sequence of letters in a specific order. For example, “Hello World” is a string as it contains sequence of letters h,e,l,o,w,r,d in a specific order like h letter is at first position and d letter is at last position. In this tutorial, we will learn about Read More

Python String Concatenation & Other Operation – Python Tutorial

1 month ago codedestine 0
Python has various types of string operators, which can be used to perform different operation on a given string like  python string concatenation, string repetition etc. In this tutorial, we will learn about the following: String Concatenation String Repetition String Contains String Not Contains String Length Python String Concatenation We can use addition ( + ) Read More

REST API Download File using Jersey 2 – RESTful Web Services Tutorial

4 months ago codedestine 0
REST API Download File :- In this tutorial, we will learn to download a file with JAX-RS using Jersey 2. Let’s try to understand it with an example. Example 1 :- In this example of rest api download file, we will hit this URL <base URL>/books/download/{ext}/{id} with HTTP GET method to download a book file. The value Read More

JAX-RS @Consumes with Example – RESTful Web Services Tutorial

5 months ago codedestine 0
In JAX-RS @Consumes annotation is used to specify the MIME media type ( input) that a resource method can consume from the client. @Consumes annotation can be applied at both class level and method level. If it is applied at the class level, all the methods in a resource will consume the specified MIME type by default and Read More

JAX-RS @Produces with Example – RESTful Web Services Tutorial

5 months ago codedestine 0
In JAX-RS @Produces annotation is used to specify the MIME media type ( output ) that a resource method can produce and send it back to the client. @Produces annotation can be applied at both class level and method level. If it is applied at the class level, all the methods in a resource will produce the specified Read More