Category: Java Frameworks
Java | static blocks
Static Blocks: Static block is used to initialize the static data members. It is executed before main method and constructor at the time of classloading. A class can have any number of static initialization blocks and they can appear anywhere
Java | Variables in Java Interfaces
Interface: In Java we have a concept called interfaces.A Java interface is same like a class, except a Java interface cannot contain an implementation of the methods, we have only signature of the method.It has static constants data member. Can
Lambda Expression in Java 8
A lambda expression is a new feature that has been added to Java 8. It is a function declared inside a method to which we can pass arguments as well as fetch lambda expressions in the form of return value
Captivate | Show instant feedback on selecting an an option in quiz question
In Adobe Captivate on a question slide if we want some feedback to be displayed instantly when user clicks radio button to select an option, it will not work. There is no option out of the box to achieve this.
Java | super keyword in Java
Should super() be the first method call in constructors, if yes why? What can go wrong if this were not the case? Explain with example. super() is a keyword in java which is used to refer to immediate parent class
Java | Check if JSON field has a value before extracting
We are using Json to retrieve value of a field from Json object but when field has no value it gives an error. For example from Blackboard LMS we can retrieve value of email field from JSON object with this
Java | Concept of Fail Fast and Fail Safe Iterators
The terms Fail Fast and Fail Safe iterators come into picture when we deal with Concurrency issue while programming in Java. In Java, while iterating over a collection if multiple threads modify the collection (such as adding a new element,
How to convert an object into Json String in Unity3D Script (C#)
How to convert an object into JSON String in Unity3D Script (C#)? Let’s say I have a class: class User { String firstName; String lastName; String userName; } User obj = new User { firstName = “Shalini”, lastName = “Vashist”,
CSS3 Viewport units vh, vw, vmin and vmax explained
CSS3 Viewport units vh, vw, vmin and vmax explained Sometimes we need to fit our webpage content into viewport (visible browser window). Some developers achieve this using Javascript by checking the size of viewport and then they resize the content