Upload Button Icon Add office photos

Filter interviews by

Viewics Senior Java Developer Interview Questions and Answers

Updated 28 Oct 2021

Viewics Senior Java Developer Interview Experiences

1 interview found

Interview Questionnaire 

1 Question

  • Q1. Program to find out logest substring with other string
  • Ans. 

    Program to find longest substring with another string

    • Create a nested loop to compare each substring of the first string with the second string

    • Use a variable to keep track of the longest substring found so far

    • Return the longest substring found

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - focused on problem solving instead of syntax

Skills evaluated in this interview

Interview questions from similar companies

Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Approached by Company and was interviewed in Oct 2024. There was 1 interview round.

Round 1 - Technical 

(5 Questions)

  • Q1. Comparable and comparator
  • Q2. Singleton class
  • Q3. Springboot questions were asked
  • Q4. Java class loader
  • Q5. Java 8 coding questions

Interview Preparation Tips

Topics to prepare for Coforge Senior Java Developer interview:
  • Java
  • Spring Boot
Interview preparation tips for other job seekers - Prepare well for java 8 coding questions
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Walk-in and was interviewed in Sep 2024. There were 3 interview rounds.

Round 1 - Technical 

(2 Questions)

  • Q1. Flow of micro services, annotations of boot
  • Q2. Sorting program
Round 2 - Technical 

(2 Questions)

  • Q1. Project flow,team management
  • Q2. Collection questions
Round 3 - HR 

(2 Questions)

  • Q1. Normal hr questions,about changing jobs and etc.
  • Q2. Salary negotiation
Interview experience
1
Bad
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Naukri.com and was interviewed in Jun 2024. There was 1 interview round.

Round 1 - Technical 

(8 Questions)

  • Q1. Write a program on java8 ?
  • Ans. 

    Program using Java 8 features to filter a list of strings starting with 'A' and convert them to uppercase.

    • Use Java 8 stream API to filter the strings starting with 'A'.

    • Use map() function to convert the filtered strings to uppercase.

    • Collect the results into a new list using collect() function.

  • Answered by AI
  • Q2. How connect two dbs in spring boot?
  • Ans. 

    To connect two databases in Spring Boot, you can configure multiple data sources and use JPA to interact with them.

    • Configure multiple data sources in application.properties or application.yml file

    • Define multiple DataSource beans in your configuration class

    • Use @Primary annotation to specify the primary data source

    • Use @Qualifier annotation to specify which data source to use in a specific repository or service

    • Use @Transa...

  • Answered by AI
  • Q3. Index in MySQL?
  • Ans. 

    An index in MySQL is a data structure that improves the speed of data retrieval operations on a database table.

    • Indexes are used to quickly locate rows in a table without having to search every row.

    • They can be created on one or more columns in a table.

    • Indexes can be unique, which means that the indexed columns must contain unique values.

    • Examples of indexes include primary keys, unique keys, and regular indexes.

  • Answered by AI
  • Q4. Difference between post & get mapping in spring boot and can we update the data using post mapping?
  • Ans. 

    Post mapping is used to create or update data, while get mapping is used to retrieve data. Yes, data can be updated using post mapping.

    • Post mapping is used to create or update data in the server, while get mapping is used to retrieve data from the server.

    • Post mapping is typically used for operations that modify data, such as creating a new resource or updating an existing one.

    • Get mapping is used for operations that do ...

  • Answered by AI
  • Q5. Microservices design patterns?
  • Ans. 

    Design patterns in microservices architecture help in solving common problems and improving scalability, maintainability, and flexibility.

    • Service Registry pattern - used for service discovery and registration, such as Netflix Eureka

    • Circuit Breaker pattern - prevents cascading failures by failing fast and providing fallback mechanisms, like Hystrix

    • API Gateway pattern - acts as a single entry point for clients to access ...

  • Answered by AI
  • Q6. Explain about SOLID principles in java?
  • Ans. 

    SOLID principles are a set of five design principles in object-oriented programming to make software designs more understandable, flexible, and maintainable.

    • S - Single Responsibility Principle: A class should have only one reason to change.

    • O - Open/Closed Principle: Classes should be open for extension but closed for modification.

    • L - Liskov Substitution Principle: Objects of a superclass should be replaceable with obje...

  • Answered by AI
  • Q7. What are the advantages of spring boot over spring?
  • Ans. 

    Spring Boot simplifies the development of Spring applications by providing out-of-the-box configurations and reducing boilerplate code.

    • Spring Boot provides a quick and easy way to set up a Spring application with minimal configuration.

    • It includes embedded servers like Tomcat, Jetty, or Undertow, eliminating the need for deploying WAR files.

    • Auto-configuration feature in Spring Boot automatically configures the applicati...

  • Answered by AI
  • Q8. Give one API task and need to sort the employee or users data based on the interviewer requirement?

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - One-on-one 

(4 Questions)

  • Q1. What is Executer Service?
  • Ans. 

    ExecutorService is an interface in Java that provides a way to manage and control the execution of threads in a multithreaded environment.

    • It is part of the java.util.concurrent package.

    • It provides methods to submit tasks for execution, manage thread pools, and control the execution of tasks.

    • It allows for the execution of tasks asynchronously and provides features like scheduling, cancellation, and monitoring of tasks.

    • E...

  • Answered by AI
  • Q2. What is the use of JPA?
  • Ans. 

    JPA is a Java specification for mapping Java objects to relational databases.

    • JPA stands for Java Persistence API

    • It provides a way to map Java objects to database tables and vice versa

    • JPA simplifies the development of data access layer in Java applications

    • It supports object-relational mapping (ORM) and allows developers to work with entities, relationships, and queries in a more object-oriented way

  • Answered by AI
  • Q3. Explain about PreparedStatement
  • Ans. 

    PreparedStatement is used in Java to execute parameterized SQL queries to prevent SQL injection attacks.

    • PreparedStatement is a subinterface of Statement in Java.

    • It is used to execute parameterized SQL queries.

    • It helps prevent SQL injection attacks by automatically escaping special characters.

    • Example: PreparedStatement pstmt = connection.prepareStatement("SELECT * FROM users WHERE username = ?");

  • Answered by AI
  • Q4. Program to find the missing numbers from Array
  • Ans. 

    Program to find missing numbers from Array

    • Iterate through the array and store each number in a HashSet

    • Then iterate from 1 to the length of the array and check if each number exists in the HashSet

    • If a number is not found in the HashSet, it is a missing number

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Company Website and was interviewed in Apr 2024. There was 1 interview round.

Round 1 - Technical 

(8 Questions)

  • Q1. Tell me about your self
  • Q2. How garbage collection works in java
  • Ans. 

    Garbage collection in Java is the process of automatically reclaiming memory by destroying unused objects.

    • Garbage collection is performed by the JVM to free up memory occupied by objects that are no longer needed.

    • It involves identifying and deleting objects that are no longer reachable by any part of the program.

    • Java provides automatic garbage collection, so developers do not have to manually manage memory allocation a...

  • Answered by AI
  • Q3. Difference between String s = "xyz" and String s = new String("xyz")
  • Ans. 

    The first statement creates a string literal in the string pool, while the second statement creates a new string object in the heap memory.

    • String s = "xyz" creates a string literal in the string pool.

    • String s = new String("xyz") creates a new string object in the heap memory.

    • Using String s = new String("xyz") can lead to unnecessary memory usage.

  • Answered by AI
  • Q4. Difference between JVM JRE JDK
  • Ans. 

    JVM is the virtual machine that runs Java programs, JRE is the runtime environment for Java programs, and JDK is the development kit for creating Java programs.

    • JVM (Java Virtual Machine) is the virtual machine that runs Java bytecode and converts it into machine code.

    • JRE (Java Runtime Environment) is the environment in which Java programs are executed. It includes JVM, libraries, and other necessary components.

    • JDK (Jav...

  • Answered by AI
  • Q5. What is public static void main method
  • Ans. 

    The public static void main method is the entry point of a Java program, where execution begins.

    • It must be declared as public so that it can be accessed from outside the class.

    • It must be declared as static so that it can be called without creating an instance of the class.

    • It must have a return type of void, indicating that it does not return any value.

    • It takes an array of strings (String[] args) as a parameter, which a...

  • Answered by AI
  • Q6. Difference between final finally finalize
  • Ans. 

    final is a keyword used to declare constants, finally is a block used in exception handling, and finalize is a method used for cleanup.

    • final keyword is used to declare constants that cannot be changed

    • finally block is used in exception handling to ensure a piece of code is always executed

    • finalize method is used for cleanup operations before an object is garbage collected

  • Answered by AI
  • Q7. Internal working of HashSet
  • Ans. 

    HashSet is a collection class in Java that stores unique elements using a hash table.

    • Uses hashing to store elements

    • Does not maintain insertion order

    • Allows null values

    • Implements Set interface

  • Answered by AI
  • Q8. Hierarchy of ArrayList
  • Ans. 

    ArrayList is a resizable array implementation in Java.

    • ArrayList is a class in Java that implements the List interface.

    • It allows dynamic resizing of the array, unlike regular arrays.

    • Elements can be added, removed, or accessed using index.

    • Example: ArrayList names = new ArrayList<>();

Answered by AI

Skills evaluated in this interview

Interview experience
1
Bad
Difficulty level
-
Process Duration
-
Result
-

I was interviewed in Jul 2024.

Round 1 - Technical 

(2 Questions)

  • Q1. Find the longest substring without repeating characters
  • Ans. 

    Find the longest substring without repeating characters in a given string.

    • Use a sliding window approach to iterate through the string and keep track of the characters seen so far.

    • Update the start index of the window when a repeating character is encountered.

    • Keep track of the longest substring length and characters seen in a hashmap.

  • Answered by AI
  • Q2. Given a time array, check if the user can attend all meeting. Array had pairs - start time and end time

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Multithreading, cocurrent hsh map,
  • Q2. Firstnon repeatable charcter
Round 2 - Technical 

(1 Question)

  • Q1. Jwttoken validation and refresh token. Concept
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via LinkedIn and was interviewed in May 2024. There was 1 interview round.

Round 1 - Coding Test 

Java8 stream api related problems to code in notepad

Interview Preparation Tips

Interview preparation tips for other job seekers - Study core java and java8 concepts
Practice java8 stream api coding
Spring Boot, JPA, MVC, Security and Test
Interview experience
3
Average
Difficulty level
Hard
Process Duration
Less than 2 weeks
Result
Not Selected

I was interviewed in Feb 2024.

Round 1 - Technical 

(1 Question)

  • Q1. Why string immutable
  • Ans. 

    String is immutable in Java to ensure security, thread safety, and optimization.

    • Immutable strings prevent accidental changes to sensitive data like passwords.

    • Immutable strings allow for safe sharing of data across multiple threads.

    • Immutable strings enable string pooling for memory optimization.

  • Answered by AI
Round 2 - Technical 

(1 Question)

  • Q1. Questions about spring boot annotations

Skills evaluated in this interview

Tell us how to improve this page.

Data Warehouse Developer
6 salaries
unlock blur

₹6.2 L/yr - ₹8.8 L/yr

Senior Engineer
5 salaries
unlock blur

₹9 L/yr - ₹17.2 L/yr

Specialist
5 salaries
unlock blur

₹17 L/yr - ₹21.8 L/yr

Senior Software Engineer
4 salaries
unlock blur

₹11.5 L/yr - ₹15.5 L/yr

Associate Specialist
4 salaries
unlock blur

₹10.1 L/yr - ₹15 L/yr

Explore more salaries
Compare Viewics with

Accenture

3.9
Compare

Capgemini

3.8
Compare

HCLTech

3.5
Compare

Teleperformance

3.9
Compare

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Did you find this page helpful?
Yes No
write
Share an Interview