How to install python on windows
How to install python on windows It is highly unlikely that your Windows system shipped with Python already installed. Windows systems typically do not. Fortunately, installing does not involve much more than downloading the Python installer from the…
How to Install python on Mac
How to Install python on Mac The best way we found to install Python 3 on macOS is through the Homebrew package manager. There are following steps which are used while installing Python3 on MacOS. Prerequisites MacOS Login as an administrator on terminal…
what is singleton class in swift
what is singleton class in swift Singleton class means single instance , That means in coding language a class which object create once , Only one instance exist in whole project and globally accessible. A singleton is a class of which only one instance…
How to Generate Random Numbers in Swift !
Generate Random Numbers in Swift : Random number is the unprecedented and unpredictable, Sometimes we use Random number to choose instances in Games or is Arcade game or poping-out the blocks from block game. In game development, you use random numbers…
Google Gson for converting Java objects to JSON and JSON to Java Objects
Java objects to JSON and JSON to Java Objects : Gson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object. Gson is an Open Source project,…
What is Custom Exception in JAVA ?
What is Custom Exception in JAVA ? In Java, there are two types of exceptions – checked and unchecked exception. Here’s the summary : Checked – Extends java.lang.Exception, for recoverable condition, try-catch the exception explicitly, compile error.…
How to change date format in a String in JAVA
How to change date format in a String in JAVA The java.text.SimpleDateFormat class is used to both parse and format dates according to a formatting pattern you specify yourself. When parsing dates, the Java SimpleDateFormat typically parses the date from…
How to use @available and #available and when to use it ?
How to use @available and #available and when to use it ? In Swift, you use the @available attribute to control whether a declaration is available to use when building an app for a particular target platform. Similarly, you use the availability condition…
What is the @objc attribute and when to use @objc in swift code?
What is the @objc attribute and when to use @objc in swift code? The @objc attribute makes your Swift API available in Objective-C and the Objective-C runtime. A Swift class or protocol must be marked with the @objc attribute to be accessible and usable…
What is Overflow Error in Software Programming
What is Overflow Error in Software Programming There are two types of overflow errors; 1-one has to do with the internal memory stack of the program, 2-other has to do with the amount of memory used to store data. Each program has a section of memory…