Objects

How to fetch the data from Nested JSON Object using PactDslJsonBody

Reading Time: 3 minutes This blog will have to help you fetch the data from nested JSON Object using a PactDslJsonBody.  How to parse nested JSON in Java? A JSON object is an unordered set of key/value pairs. A JSON array is an ordered collection of values. The values could be objects or arrays. Nested JSON is a JSON file with its values being other JSON objects. Accessing nested Continue Reading

Object-Oriented Programming in Scala

Reading Time: 3 minutes Object-oriented programming (OOP) is a computer programming model that organizes software design around data, or objects, rather than functions and logic. Scala is also an Object-Oriented language and in this blog, we will see how we achieve that in scala. Classes in Scala Class is like a blueprint for a real-world entity which we call object in programming languages. It provides the initial values for state Continue Reading

Class and Object keyword In Scala Programming

Reading Time: 2 minutes Scala is hybrid language contain both functional and object oriented functionality. Scala was created by Martin Odersky. Scala run on JVM, and you can also use java api with in scala program. You can write Scala program with two keyword 1. class and 2. object. Example: class Car{ def run(){ println(“running”); } } object App{ def main(args: Array[String]) { println(“hello World”); val car = new Continue Reading