Tight Coupling And Loose Coupling In Java
Java Concept Of The Day
by pramodbablad
3w ago
In real world, coupling means joining or connecting or bringing together two individual entities. In software engineering world, coupling means how two classes or two objects or any two components of a software are connected to each other to solve a real world problem. There are two types of coupling in software engineering. One is tight coupling and another one is loose coupling. In this post, we will try to understand what is tight coupling and loose coupling using some Java code snippets. Tight Coupling In Java : When two classes are firmly connected to each other or closely dependent… The ..read more
Visit website
Java JDBC Cheat Sheet
Java Concept Of The Day
by pramodbablad
3w ago
Below is the Java JDBC cheat sheet. You can use it as quick reference guide to prepare for the interviews. Basics : What is JDBC? JDBC – Java Database Connectivity – is an API which is used by the Java applications to interact with the database management systems. It consists of several classes and interfaces – written entirely in Java – which can be used to establish connection with the database, send the queries to the database and process the results returned by the database. JDBC API makes Java application independent of the database it uses. If your application is… The post Java JDBC Chea ..read more
Visit website
Java Collections Cheat Sheet
Java Concept Of The Day
by pramodbablad
1M ago
Below is the Java collections cheat sheet. You can use it as quick reference guide to prepare for the interviews. Basics : What is Java Collection Framework? Java Collection Framework is a framework which provides some predefined classes and interfaces to store and manipulate the group of objects. Using Java collection framework, you can store the objects as a List or as a Set or as a Queue or as a Map and perform basic operations like adding, removing, updating, sorting, searching etc.. with ease. Why Java Collection Framework? Earlier, arrays are used to store the group of objects. But,… The ..read more
Visit website
Java Exception Handling Quiz
Java Concept Of The Day
by pramodbablad
1M ago
1) What is wrong with the following code? Why it is showing compilation error? View Answer There should not be any other statements in between try and catch blocks. 2) What will be the output of the following program? View Answer 3 3) What will be the output of the following program? View Answer 1 3 4) What will be the output of the following program? View Answer Compile time error. try, catch and finally blocks together form one unit. There should not be any other statements in between try-catch-finally blocks. 5) Catch block takes one argument of type java.lang.Object.… The post Java Excepti ..read more
Visit website
Java Exception Handling Cheat Sheet
Java Concept Of The Day
by pramodbablad
2M ago
Below is the Java exception handling cheat sheet. You can use it as quick reference guide to prepare for the interviews. Basics : What is exception? Exception is an abnormal condition which occurs during execution of a program and disrupts the normal flow of a program. Examples : NumberFormatException, ArithmaticException, ArrayIndexOutOfBoundsException, ClassCastException, NullPointerException, StackOverflowError, OutOfMemoryError etc… Exception Handling In Java : Exceptions in Java are handled using try, catch and finally blocks. try block : This block contains statements which may thro ..read more
Visit website
Java Threads Quiz
Java Concept Of The Day
by pramodbablad
2M ago
1) What will be the output of the following program? View Answer main 2) What will be the output of the following program? View Answer 10 5 1 3) What will be the output of the following program? View Answer 5 4) What will be the outcome of the following program? View Answer It will throw java.lang.IllegalThreadStateException. Because, we can’t start a thread twice. 5) We can change the name of a main thread. True OR False? View Answer True 6) What will be the output of the following program? View Answer false 7) What will be the outcome of… The post Java Threads Quiz appeared first on Java Con ..read more
Visit website
Java I/O Cheat Sheet
Java Concept Of The Day
by pramodbablad
3M ago
In this post, I have tried to write Java I/O cheat sheet with important I/O classes and their description. Download it and refer whenever required. Java I/O Cheat Sheet : What is stream? A stream is a sequence of data generated by the input source and consumed by the output destination. There are two types of I/O streams in Java. 1) Byte Streams : Byte streams read and write data byte by byte i.e 8 bits maximum at a time. These streams are most suitable to process the binary files like image files, audio files, video files, executable files etc…… The post Java I/O Cheat Sheet appeared first on ..read more
Visit website
Java Keywords Cheat Sheet
Java Concept Of The Day
by pramodbablad
3M ago
Java keywords are the reserved words which have predefined meaning in the language and hence can’t be used as identifiers. There are 67 Java keywords as of now. In this post, I have created a Java keywords cheat sheet. You can download it and refer whenever required. Data Types 1) byte byte keyword is used to declare primitive byte type of variables. 2) short short keyword is used to declare primitive short type of variables. 3) int int keyword is used to declare primitive integer type of variables. 4) long long keyword is used to declare primitive long type of… The post Java Keywords Cheat Sh ..read more
Visit website
HTTP Status Codes Cheat Sheet
Java Concept Of The Day
by pramodbablad
4M ago
What Are HTTP Status Codes? HTTP status codes are the three digit numbers which represent server’s response to the client’s request. HTTP status codes are divided into five categories. 1xx : Informational Purpose 2xx : Successful 3xx : Redirection 4xx : Client Error 5xx : Server Error 1xx : Informational Purpose These response codes are used to send some provisional message to the client while server is still processing the request. 1) 100 – Continue This status code indicates that server has received request headers and client can continue to send request body. 2) 101 – Switching Protocols Th ..read more
Visit website
Java Threads Cheat Sheet
Java Concept Of The Day
by pramodbablad
5M ago
Java threads is the most discussed topic in any technical interview. Whether you are a fresher or experienced, it is sure that you will get one or two questions on Java threads. Below is the Java threads cheat sheet. You can use it as a quick reference guide whenever you are preparing for an interview. Basic Definitions What is thread? Thread is a smallest executable unit of a process. Thread has it’s own path of execution in a process. A process can have multiple threads. What is process? Process is an executing instance of an application. For example, when you… The post Java Threads Cheat Sh ..read more
Visit website

Follow Java Concept Of The Day on Feedspot

Continue with Google
OR