Skip to main content

Posts

Java Technology Interview Questions

Java Basics (Core Java): Explain Inheritance, Composition and Aggregation Explain Singleton Pattern Can I create  a sub class of a static/abstract class ? Difference between sleep() and wait() Where are local variables stored in JVM ? [Stack/Heap] What are Transient and Volatile Variables ? when do you use them ?   Transient: Dictionary Meaning of Transient : One who stays for only a short time. You use the  transient  keyword to indicate to the Java virtual machine that the indicated variable is  not  part of the persistent state of the object. Variables that are part of the persistent state of an object must be saved when the object is archived.  Volatile: If your class contains a member variable that is modified asynchronously by concurrently running threads, you can use Java's  volatile  keyword to notify the Java runtime system of this. What are deadlocks and how are they caused ? What is Serialization a...

Software Security Vulnerabilities

According to one recent study, the top three software security loopholes are mainly due to following reasons: 1. Cross Site Scipting 2. SQL Injection 3. Malicious File Execution SQL Injection In this type of software vulnerability, hackers try to gain the access to the application by injecting SQL code.  Below is the simple example : Lets say an application is giving access to the user by asking them to enter user id and password in its login screen. But the application code is written in such a way [Concatenated user input strings] that it gives the access based on checking the below SQL statement in the backend. SELECT FIRST_NAME FROM USERS_TABLE WHERE USER_ID = ‘’’ ||user_id_input ||’’’ and password== ‘’’ ||password_input ||’’’; Lets say users_table in the database is having following data : Users Table Row Number First_Name Last_Name user_Id password 1 Mike Tyson mike trickme Now if Mike enters user id as ‘mike’ and password as ‘trickme’ then h...

What are 2G, 3G and 4G

The terms 2G, 3G and 4G in mobile industry mainly specify the speed with which they can transfer the data. 2G denotes 2nd Generation of mobile/wireless data transfer technology with speed upto 150 KB/sec 3G denotes 3rd Generation of mobile/wireless data transfer technology with speed upto 800 KB/sec 4G denotes 4th Generation of mobile/wireless data transfer technology with speed upto 1GB/sec